Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

jbasko/bye-bye-shopify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bye-bye-shopify

If your Shopify store isn't doing too well, it's time to close it, but Shopify doesn't provide an easy way to extract all your product catalogue. This Python utility allows you to do that. I wrote it for and tested it only on my mom's candle store.

Features

  • Extract products and product variations to a JSON file, one per product
  • Extract product images to a local directory
  • Extract custom collections

Installation

pip install bye-bye-shopify

Configuration

In Shopify Admin, under Apps / Manage private apps (link at the very bottom of the page), create a new private app. The name of the app doesn't matter. Set the following environment variables by copying the values of API key and Password displayed on the page:

export BYE_BYE_API_KEY="..."
export BYE_BYE_API_PASSWORD="..."

You will also need to set the hostname of your shop which is probably something like yourshopname.myshopify.com:

export BYE_BYE_API_HOSTNAME="yourshopname.myshopify.com"

Usage

Through command-line interface:

bye-bye-shopify --help

bye-bye-shopify download_all

ls -al data/products/
ls -al data/custom_collections/

Programmatically:

from bye_bye_shopify.loaders import LocalLoader
LocalLoader().load_all()