amazon-orders

A CLI and library for interacting with Amazon order history

MIT License

Downloads
1.8K
Stars
13

Bot releases are visible (Hide)

amazon-orders - Latest Release

Published by alexdlaird 4 months ago

Added

  • Improvements to helper functions for simple parsing support (prefix_split, parsing improvements, and more).
  • Bug fixes and stability improvements.
amazon-orders -

Published by alexdlaird 5 months ago

Added

  • Config is now managed through a YAML file, with support for CLI overrides.
  • Documentation improvements.

Fixed

  • Parsing issues due to change in Amazon.com DOM.
  • Other minor bug fixes.
amazon-orders -

Published by alexdlaird 5 months ago

Added

  • Build improvements.
  • Documentation improvements.
  • Test improvements (Amazon no longer provides the condition field in many cases).

Fixed

  • Raise AmazonOrdersNotFoundError when Order is not found.
  • Prices with thousands separator now parse properly.

Changed

amazon-orders -

Published by alexdlaird 6 months ago

Added

  • Build improvements.
  • Test improvements.

Changed

  • Renamed kwarg passed to IODefault.prompt() from captcha_img_url to img_url.
  • Renamed kwarg passed to IODefault.prompt() from mfa_device_select_choices to choices.
amazon-orders -

Published by alexdlaird 7 months ago

Added

  • constants.BASE_URL will look for the environment variable AMAZON_BASE_URL before defaulting to "https://www.amazon.com".
  • Build and stability improvements.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • Build and style improvements.
  • Documentation improvements.
  • pytest to streamline running unit and integration tests.

Removed

  • conf.VERSION, moved all version information to amazonorders/__init__.py. Get package version with from amazonorders import __version__ instead.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • Build improvements.

Changed

  • Renamed make check-style to make check.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • login command to CLI.
  • If --username or --password are not given and no stored session, CLI will prompt.
  • Build improvements.

Fixed

  • Issue where Parsable objects could not be pickled due to BeautifulSoup Tag objects.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • Relative dependency pinning in pyproject.toml.
  • Style and stability improvements (check flake8 with make check-style).

Removed

  • requirements.txt files to streamline in to pyproject.toml.
amazon-orders -

Published by alexdlaird 8 months ago

Changed

  • version command now includes Python version and doesn't printer banner, for easy parsing.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • Migrated to pyproject.toml.
amazon-orders -

Published by alexdlaird 8 months ago

Added

  • AuthForm's now passes captcha_img_url to its prompt() fallback for Captcha, useful for overriding IODefault.
  • MfaDeviceSelectForm now passes mfa_device_select_choices to prompt(), useful for overrides IODefault.
  • Documentation improvements.
amazon-orders -

Published by alexdlaird 9 months ago

Added

  • Stability improvements.
amazon-orders - 1.0.7

Published by alexdlaird 9 months ago

Added

  • AuthForm abstract class, and migrated all auth flow items to subclasses of this class.
  • Parsable.simple_parse(), which can handle most basic fields when parised with CSS selectors.
  • Stability improvements.
  • Test improvements.

Changed

  • Moved all constant variables (URLs, CSS selectors, etc.) to constants.py.
  • Migrated entities to use CSS selector constants.
  • constants.SIGN_IN_URL is now the landing page for login, the old value has been moved to constants.SIGN_IN_REDIRECT_URL.
amazon-orders -

Published by alexdlaird 9 months ago

Added

  • Support for when local session data is stale (Amazon prompts us to login again).
  • Documentation improvements.

Fixed

  • Regression in the Captcha flow introduced in 1.0.5.
amazon-orders -

Published by alexdlaird 9 months ago

Added

Changed

amazon-orders -

Published by alexdlaird 9 months ago

Added

  • A new OTP auth flow from Amazon that can occur after Captcha.
  • Parameters --max-auth-attempts and --output-dir to CLI.
  • DEFAULT_OUTPUT_DIR, which defaults to os.getcwd(), but allows users to change where output files are written.
  • Troubleshooting section to the docs.
  • Test improvements, including the ability to run dynamic tests using private order data from JSON files.

Changed

  • Improved string representations of entities, including Order, moved string representation of all fields back to cli.py out of the __str__ method.
  • Moved DEFAULT_COOKIE_JAR_PATH to conf.py.
amazon-orders -

Published by alexdlaird 9 months ago

Added

  • CLI improvements.
  • Documentation improvements.
amazon-orders -

Published by alexdlaird 9 months ago

Added

  • IODefault for I/O operations, which can be extended to use something other than print() and input().
  • Documentation improvements.
  • Test improvements.

Removed

Orders.print_output variable, cli.py now handles output.

amazon-orders -

Published by alexdlaird 9 months ago

Added

  • Auth flow now also checks session cookies in addition to parsing the page for signs of login.
  • All fields to string representation of Order, so they are not output on the CLI.
  • logout command to CLI.
  • Documentation improvements.
  • Test improvements.

Fixed

  • Improvements to CLI, including error message cleanup on auth exceptions.
  • Order.order_details_link is now properly populated even on the details page.
  • .gitattributes to HTML files are now ignore by Linguist.
Package Rankings
Top 38.21% on Pypi.org
Badges
Extracted from project README
Version Python Versions Coverage Build Docs GitHub License
Related Projects