{"repo":"dcwangmit01/amazon-invoice-downloader","free":true,"listed":false,"github":"https://github.com/dcwangmit01/amazon-invoice-downloader","clone":"git clone https://github.com/dcwangmit01/amazon-invoice-downloader.git","description":"Automatically download Amazon Invoices as PDFs","language":"Python","stars":74,"topics":["amazon","pdf","playwright","scraper","selenium"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Amazon Invoice Downloader ----- Table of Contents - What it does - Installation - Quick Start - Usage - AI Assistant Integration & Debugging - Development - Troubleshooting - License What it does This program automates downloading Amazon purchase invoices using Playwright to control a Chromium browser. It logs into Amazon, navigates to \"Returns & Orders\", and downloads invoices for a specified date range. ⚠️ Important Note : This program was last tested and verified to work in August 2025. Amazon.com occasionally updates their website interface, which may require code updates to maintain compatibility. If you encounter issues, please consider submitting a pull request with fixes. Credentials (in order of precedence): 1. Command line: --email= --password= 2. Environment variables: $AMAZON EMAIL and $AMAZON PASSWORD 3. .env file (auto-loaded from current/parent directories) Date Range : Use --year= or --date-range= . Defaults to current year. Output : PDFs saved to ./downloads/ as YYYYMMDD amazon .pdf . Existing files are skipped. Features : - Human-like delays (2-5 seconds) to avoid bot detection - Automatic credential loading from .env files or environment variables - Remote debugging enabled on port 9222 for AI assistant integration - Virtual authenticator configured to prevent passkey dialogs - Stealth mode enabled to avoid detection - Automatic 2FA detection and handling - Skips cancelled orders automatically - Creates downloads/ directory automatically Installation Option","default_branch":null,"files":null,"tree":[],"storefront":"/r/dcwangmit01","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dcwangmit01/amazon-invoice-downloader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}