A web scraper in python that extract sales, price, avaliable stock and more of a targeted seller in Malaysia. I modified it to find a targeted item stock and check if it is available.
Python 3 was used to build the project.
The Shopee public API is used to run the script.
- The first thing you have to do is to find the seller's id. It's present in the product link.
- 12065998 is the seller's id. That's required to run the script.
- 4229067630 is the product's id
- Before running the code, change the file directory where you want to save the csv file generated what will contain all the data extracted.
file=open("/YOUR-DIRECTORY/%s-YOUR-FILE-NAME.csv" % data, "a")
- The %s- right before the file name prints the date when the csv was generated. It's recommended to keep it that way, in order to track down your files.
- Using the terminal, go to the script's folder and run:
python3 shopee-scraper.py
Built Based on: https://github.com/paulodarosa/shopee-scraper