shopify-scraper
shopify-scraper copied to clipboard
Simple scraper to extract all products from shopify sites
I can run the script but it doesn't create csv files?
UnicodeEncodeError: 'charmap' codec can't encode characters in position 950-953: character maps to Handle UnicodeEncodeError
- Replace optparse with argparse as it is deprecated. - Dumping to stdout instead of a file. Fixes #4 - Addition of --output-format flag to dump output as json. Fixes...
The default number of products returned per call (from [the docs](https://help.shopify.com/en/api/reference/products/product)) is 50 items. This change will get 250 products per API call, decreasing the number of calls necessary to...
Traceback (most recent call last): File "shopify.py", line 176, in extract_products(url, 'products.csv', collections) File "shopify.py", line 155, in extract_products product['image_src'].replace("\xa0"," "), product['body'].replace("\xa0"," ")]) UnicodeEncodeError: 'gbk' codec can't encode character '\u2122'...
How will I extract inventory count for each product? When I check the source file for any product, it is showing inventory count, prices, bar code and all the details...
This would enable one to use pip install to use the tool
In the code i see you use the collections list to fetch products in `extract_products` function. How to handle those products that are not part of any collections?
Specifying an --output-format flag would add a lot of flexibility to this tool. I would like to create a PR for this as well
This would make cli experience a lot better. I would like to give a PR for this.