Skip to content

Instantly share code, notes, and snippets.

@cypris75
Last active June 2, 2024 07:05
Show Gist options
  • Save cypris75/dc8baf5ea67b87d87ae839468ffdaa0c to your computer and use it in GitHub Desktop.
Save cypris75/dc8baf5ea67b87d87ae839468ffdaa0c to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cypris75
Copy link
Author

This works for Amazon.de (Germany) and is currently hard-coded to download all invoices from the current year.

To make it work for other marketplaces you would need to adjust the following:

  • Locale
  • Label "Hallo, anmelden"
  • Labels for login fields and buttons
  • Label for your orders
  • Date format
  • All amazon.de references
  • All XPath references to German labels
  • Currency and number formatting references
  • ... and probably more

You also need an .env file with your login data:

AMAZON_EMAIL=jeff@amazon.com
AMAZON_PASSWORD=itsstilldayone

Hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment