Giter Club home page Giter Club logo

shopify-python-scraping-tool's Introduction

shopify-python-script

This python script allows you to scrape a Shopify stores product.json and output data to a specific file type.

Requirements:

Python 3

Usage:

python3 shopify.py [-h] [--list-collections] [--collections COLLECTIONS] [--csv] [--tsv] [--google-manufacturer] [--base-feed] [site's url]

Optional arguments:

  • -h, --help: Shows help messages and allows exit
  • --list-collections: Returns a complete list of Shopify collections for the URL
  • --collections COLLECTIONS, -c COLLECTIONS: Scrape products from a specific Shopify URL's collection(s)
  • --csv: Formats the output file in .csv
  • --tsv: Formats the output file in .tsv

Output Templates:

  • --google-manufacturer: Outputs file to Google's Manufacturer Center Feed specification
  • --base-feed: Outputs basic product feed that includes Shopify's MetaField data
  • --elliot-template: Outputs Shopify product data into an importable Elliot catalog CSV

Return a list of Shopify collections:

python3 shopify.py --list-collections [site's url]

Scrape products from a specific set of Shopify collections:

python3 shopify.py -c col1,col2,col3 [site's url]

Set output file format to .csv:

python3 shopify.py --csv --base-feed [site's url]

Set output file format to .tsv:

python3 shopify.py --tsv --base-feed [site's url]

Set output file format to Elliot's Product Import:

python3 shopify.py --tsv --elliot-template [site's url]

Example:

python3 shopify.py -c vip,babs-and-bab-lows https://www.greats.com

The products get saved into a file named products.csv in the current directory.

shopify-python-scraping-tool's People

Contributors

surgieboi avatar

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.