A CLI and library for interacting with Amazon order history.
Project description
Amazon Orders
amazon-orders
is an unofficial library that provides a command line interface alongside a programmatic API that can
be used to interact with Amazon.com's consumer-facing website.
This package works by parsing website data from Amazon.com. A nightly build validates functionality to ensure its stability, but as Amazon provides no officially supported API, this package may break at any time. This package only supports the English version of the website.
Installation
amazon-orders
is available on PyPI and can be installed using pip
:
pip install amazon-orders
That's it! amazon-orders
is now available as a Python package is available from the command line.
Basic Usage
Execute amazon-orders
from the command line with:
amazon-orders --username <AMAZON_EMAIL> --password <AMAZON_PASSWORD> history
Or use amazon-orders
programmatically:
from amazonorders.session import AmazonSession
from amazonorders.orders import AmazonOrders
amazon_session = AmazonSession("AMAZON_EMAIL", "AMAZON_PASSWORD")
amazon_session.login()
amazon_orders = AmazonOrders(amazon_session)
orders = amazon_orders.get_order_history(year=2023)
for order in orders:
print("{} - {}".format(order.order_number, order.grand_total))
amazon-orders
is under active development and known to be unstable. We are currently building out core functionality,
tests, and documentation. Our goal is to provide a library that fetches customer order data alongside payment
information. From there, if we find this scraping route to be stable, we may build out the library further to support
other functions of Amazon.com.
Contributing
If you would like to get involved, be sure to review the Contribution Guide.
Want to contribute financially? If you've found amazon-orders
useful, sponsorship would
also be greatly appreciated!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for amazon_orders-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8af9d706f4391321aac5644f9ac9c53840fbeb3f63846c6d1d6b1dd9a6c5f3f |
|
MD5 | c5564fc026b57c9c7b736f87430e3b48 |
|
BLAKE2b-256 | a45d1c568f7faa6fea8b1d8aaac27b71d032dc9f33b6b13b6db3884dc3907265 |