Skip to content

Export your orders from amazon.de (upstream is now on GitLab.com)

Notifications You must be signed in to change notification settings

tribut/amazon-orders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amazon-orders

Export your orders from amazon.de

Based on the idea of CyberLine/amazon-parser, this allows you to export your orders from amazon.de - without needing or opening a browser window.

This is only tested on amazon.de, since amazon.com offers an integrated CSV export of your orders, amazon.de does not.

By default this script ignores free orders and orders that were returned and refunded. Free orders may be included by calling the script with the --include_free option, or passing include_free=True to download_orders. The same can be achieved for refunded orders using --include_refunded or include_refunded=True.

You can also extract a single year by specifying the --single_year option or passing single_year=YEAR to download_orders. (thanks to @tribut)

Additionally, if you have 2 Factor Authentication set up for you Amazon account, you will be asked for your authentication code when running this from your terminal. When using this from another project, you can also pass your authentication code to download_orders. (thanks to @tribut)

Install

  1. git clone [email protected]:albalitz/amazon-orders.git
  2. cd amazon-orders
  3. Create a pyvenv: pyvenv venv
  4. Install the requirements: venv/bin/pip install -r requirements.txt

Use

Terminal

usage: amazon_orders.py [-h] [-v] [-j FILE] [-c FILE] [--include_free]
                        [--include_refunded] [--single_year YEAR]

Export your orders from amazon.de.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Increase the loglevel. More vs = more output.
  -j FILE, --json FILE  Save the orders as json to the specified file.
  -c FILE, --csv FILE   Save the orders as csv to the specified file.
  --include_free        Include free orders.
  --include_refunded    Include refunded orders.
  --single_year YEAR    Only export the specified year.

In another project

Download amazon_orders.py to your project and use it like this:

import amazon_orders

orders = amazon_orders.download_orders("[email protected]", "supersecurepassword1")

About

Export your orders from amazon.de (upstream is now on GitLab.com)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages