This is a simple script that scrapes any Shopify website and creates a file containing the website's collections. The script provides all collection data available in the /colletions.json
endpoint (with one exception - the collection description). This might also serve as a great learning resource into making requests.
Feel free to fork this script and modify it, or open a pull request to improve it.
- Make sure you have Python3 and Pip installed. Check using
python --version
andpip --version
- Clone repo using
git clone https://github.com/vladieboi/shopify-collection-scraper/
(or download it) - Navigate to download folder repo using
cd path/to/download/folder
- Install required packages using
pip install -r requirements.txt
- Run the script using
python scraper.py
Argument | Type | Default | Values |
---|---|---|---|
--domain |
Str | ||
--output |
List | csv |
csv |
python3 scrape.py --domain eu.kith.com