Extracting Data from Shopify

Background

Shopify is a Canadian e-commerce company headquartered in Ottawa, Ontario, that develops computer software for online stores and retail point-of-sale systems.
Source Wikipedia

In this article, we will demonstrate how easy it is to extract and manipulate Shopify data.

Preparation

1)  Create Shopify account at www.shopify.com

2 ) Log in

Shopify1

3 ) Click apps

Shopify1

4) Click Private Apps

Shopify1

5) Create new Private App

Shopify1

6) Note API key and passport we will need it later

Python

1)  Download and install python 2.7  version 32 bit for 32-bit version or 64 bit for 64-bit version of ETL software.

https://www.python.org/downloads/release/python-2712/

2) Once installed run the following command from the command line

python.exe pip install requests

That will install requests python package

Extracting Data

We now ready to extract the data.

Run Advanced ETL Processor Enterprise

Create a new package, add Script Action and make sure that language used is set Python

Shopify1

Enter this code, do not forget to replace SHOPNAME, KEY and PASSWORD

 import requests
response = requests.get( "https://SHOPNAME.myshopify.com/admin/orders.xml",
                               auth=("KEY","PASSWORD"))
file = open("orders.xml", "w")
file.write(response.text)
file.close()

Shopify1

Data can be extracted as XML or as JSON, just replace file extension XML with JSON. Once data is saved on the local drive it can be loaded into the database

Shopify1

More information about Shopify API can be found here

https://help.shopify.com/api/reference/order

Direct link, no registration required.
 
Xerox
Swiss banking
Bank Of Oklahoma
Red Cross
Alta Pacific bank
Copeinca
Gas alberta
NHS
Royal Brunei
First Oklahoma bank
Noresco
Iqvia

Testimonials

What customers say about us

  • swissbanking

    I used Advanced ETL Processor in 2 Enterprises for many business processes and Business automation (outside finance department). I did not find any other tool with so many functions and broad flexibility for that Price! If you need support for bugs or solution design you will get it very fast. Best Support I have ever seen.

    Lionel Albrecht
  • iqvia

    IQVIA and DB Software Laboratory (DBSL) partnered in 2010 and have been working in close cooperation ever since. Over this period of time DBSL software components formed an integral part of a large number of IQVIA applications currently used by over 20 UK NHS Trusts (Hospitals).

    Dmitry Dorsky,
    Director
  • xerox

    The product is easy to learn and once a developer understands the ETL way for solving the problem at hand, the developer's productivity will increase. Even our DBAs now uses the ETL software to quickly create solutions instead of SSIS or .SQL jobs.

    Daniel Fung
    Solutions Architect

 

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies