Giter VIP home page Giter VIP logo

shopify-products-scraper's Introduction

Buy Me A Coffee

Shopify Products Scraper

This is Shopify products Scraper. The script retrieves data from the products.json file of Shopify shop. Then, for each product, it makes an additional query to the product page to retrieve data from meta tags.

All scraped information is saved to a CSV file (products.csv)

Why is this useful?

Unfortunately, the /products.json endpoint does not contain meta tags. To export all product parameters, it is necessary to query each product directly.

That's why a script was created. To do it automatically!

๐Ÿ”ฅ Installation

git clone https://github.com/grabowskiadrian/shopify-products-scraper.git
cd shopify-products-scraper
pip3 install -r requirements.txt

๐Ÿš€ Usage

python3 shopfiy_scraper.py -t https://www.shopifyshop.com

Output:

python3 shopfiy_scraper.py -t https://www.shopifyshop.com
[+] Starting script
[+] Checking products page
 โ”œ Scraping: https://www.shopifyshop.com/products/nami-nude-corn-outlet
 โ”œ Scraping: https://www.shopifyshop.com/products/sniegowce-damskie-czarne-boom-snow-boots-black-grape
 โ”œ Scraping: https://www.shopifyshop.com/products/mini-pouch-mokka-croco
 โ”œ Scraping: https://www.shopifyshop.com/products/saszetka-etui-na-karty-damskie-mini-pouch-black-ink-croco
 ...
[+] Scraping done

Script will generate products.csv with this header:

Name,URL,Meta Title,Meta Description,Product Description

You can use -v flag to save Product Variants in separated rows.

Name,Variant Name,Price,URL,Meta Title,Meta Description,Product Description

then script synchronize Variant Name and Price also.

Plans and ideas

  • add more columns to output csv (not only SEO parameters)
  • add possibility to list/download images of product

shopify-products-scraper's People

Contributors

grabowskiadrian avatar

Stargazers

whitemirror avatar  avatar Tony Wilson avatar Ryan Sudhakaran avatar Colter Bowman avatar Cray J Thomas Jr avatar khael avatar David Watkins avatar

Watchers

 avatar

shopify-products-scraper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.