返回顶部
a

amazon-orders

Download and query your Amazon order history via an unofficial Python API and CLI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,158
下载量
0
收藏
概述
安装方式
版本历史

amazon-orders

# amazon-orders Skill Interact with your Amazon.com order history using the unofficial `amazon-orders` Python package and CLI. > Note: `amazon-orders` works by scraping/parsing Amazon's consumer website, so it can break if Amazon changes their pages. Only the English Amazon **.com** site is officially supported. ## Setup ### Install / upgrade ```bash python3 -m pip install --upgrade amazon-orders ``` (Install details and version pinning guidance are in the project README.) ### Authentication options `amazon-orders` can get credentials from (highest precedence first): environment variables, parameters passed to `AmazonSession`, or a local config. Environment variables: ```bash export AMAZON_USERNAME="you@example.com" export AMAZON_PASSWORD="your-password" # Optional: for accounts with OTP/TOTP enabled export AMAZON_OTP_SECRET_KEY="BASE32_TOTP_SECRET" ``` (OTP secret key usage is documented by the project.) ## Usage You can use `amazon-orders` either as a **Python library** or from the **command line**. ### Python: basic usage ```python 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 from a specific year orders = amazon_orders.get_order_history(year=2023) # Or use a time filter for recent orders orders = amazon_orders.get_order_history(time_filter="last30") # Last 30 days orders = amazon_orders.get_order_history(time_filter="months-3") # Past 3 months for order in orders: print(f"{order.order_number} - {order.grand_total}") ``` #### Full details (slower, more fields) Some order fields only populate when you request full details; enable it when you need richer order data: - Python: `full_details=True` - CLI: `--full-details` on `history` ### CLI: common commands ```bash # Authenticate (interactive / uses env vars if set) amazon-orders login # Order history amazon-orders history --year 2023 amazon-orders history --last-30-days amazon-orders history --last-3-months ``` ### Tips - If your account has MFA enabled, prefer setting `AMAZON_OTP_SECRET_KEY` for automated runs. - When automating, keep credentials out of shell history: use environment variables and a secret manager (1Password, Vault, GitHub Actions secrets, etc.). ## Examples ### Export yearly history to JSON ```bash amazon-orders history --year 2023 --full-details > orders_2023.json ``` ### Quick totals check (requires jq) ```bash amazon-orders history --last-30-days --full-details | jq -r '.[] | [.order_number, .grand_total] | @tsv' ``` ## Notes - This is an unofficial scraper-based tool (no official Amazon API). - Official docs are hosted on Read the Docs for advanced usage and APIs (Orders, Transactions, etc.).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 amazon-orders-1776329309 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 amazon-orders-1776329309 技能

通过命令行安装

skillhub install amazon-orders-1776329309

下载 Zip 包

⬇ 下载 amazon-orders v1.0.0

文件大小: 2.07 KB | 发布时间: 2026-4-17 15:49

v1.0.0 最新 2026-4-17 15:49
- Initial release of the amazon-orders skill.
- Enables downloading and querying Amazon order history via an unofficial Python API and CLI.
- Supports authentication using environment variables, interactive login, or config files.
- Provides filtering for orders by year or time period (e.g., last 30 days, past 3 months).
- Includes both Python library and CLI usage examples.
- Adds guidance for handling MFA and exporting order data.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部