amazon-orders 3.2.7__tar.gz → 3.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/CHANGELOG.md +13 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/LICENSE +1 -1
- {amazon_orders-3.2.7/amazon_orders.egg-info → amazon_orders-3.2.9}/PKG-INFO +14 -12
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/README.md +8 -6
- {amazon_orders-3.2.7 → amazon_orders-3.2.9/amazon_orders.egg-info}/PKG-INFO +14 -12
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazon_orders.egg-info/requires.txt +3 -3
- amazon_orders-3.2.9/amazonorders/__init__.py +3 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/cli.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/constants.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/item.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/order.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/parsable.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/recipient.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/seller.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/shipment.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/transaction.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/exception.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/forms.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/orders.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/selectors.py +9 -4
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/session.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/transactions.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/util.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/pyproject.toml +4 -4
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_cli.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_conf.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_orders.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_session.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_transactions.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/test_util.py +1 -1
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/tests/testcase.py +1 -1
- amazon_orders-3.2.7/amazonorders/__init__.py +0 -3
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/MANIFEST.in +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazon_orders.egg-info/SOURCES.txt +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazon_orders.egg-info/dependency_links.txt +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazon_orders.egg-info/entry_points.txt +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazon_orders.egg-info/top_level.txt +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/banner.txt +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/conf.py +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/amazonorders/entity/__init__.py +0 -0
- {amazon_orders-3.2.7 → amazon_orders-3.2.9}/setup.cfg +0 -0
|
@@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.
|
|
7
|
+
## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.9...HEAD)
|
|
8
|
+
|
|
9
|
+
## [3.2.9](https://github.com/alexdlaird/amazon-orders/compare/3.2.8...3.2.9) - 2025-02-19
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Further support for Amazon's new `data-component` tag on order ID and order date.
|
|
14
|
+
|
|
15
|
+
## [3.2.8](https://github.com/alexdlaird/amazon-orders/compare/3.2.7...3.2.8) - 2025-02-18
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Dependency and documentation improvements (including fixing links to BeautifulSoup entities).
|
|
8
20
|
|
|
9
21
|
## [3.2.7](https://github.com/alexdlaird/amazon-orders/compare/3.2.6...3.2.7) - 2025-02-17
|
|
10
22
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: amazon-orders
|
|
3
|
-
Version: 3.2.
|
|
4
|
-
Summary: A
|
|
3
|
+
Version: 3.2.9
|
|
4
|
+
Summary: A Python libray (and CLI) for Amazon order history
|
|
5
5
|
Maintainer-email: Alex Laird <contact@alexlaird.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2024 Alex Laird
|
|
8
|
+
Copyright (c) 2024-2025 Alex Laird
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -48,9 +48,9 @@ License-File: LICENSE
|
|
|
48
48
|
Requires-Dist: click>=7.1
|
|
49
49
|
Requires-Dist: requests>=2.23
|
|
50
50
|
Requires-Dist: amazoncaptcha>=0.4
|
|
51
|
-
Requires-Dist: beautifulsoup4>=4.
|
|
51
|
+
Requires-Dist: beautifulsoup4>=4.12
|
|
52
52
|
Requires-Dist: PyYAML>=5.1
|
|
53
|
-
Requires-Dist: python-dateutil>=2.8
|
|
53
|
+
Requires-Dist: python-dateutil>=2.8
|
|
54
54
|
Provides-Extra: dev
|
|
55
55
|
Requires-Dist: pytest; extra == "dev"
|
|
56
56
|
Requires-Dist: parameterized; extra == "dev"
|
|
@@ -64,7 +64,7 @@ Requires-Dist: twilio; extra == "dev"
|
|
|
64
64
|
Requires-Dist: pyngrok; extra == "dev"
|
|
65
65
|
Requires-Dist: lxml; extra == "dev"
|
|
66
66
|
Provides-Extra: docs
|
|
67
|
-
Requires-Dist: Sphinx; extra == "docs"
|
|
67
|
+
Requires-Dist: Sphinx<8.2; extra == "docs"
|
|
68
68
|
Requires-Dist: sphinx-notfound-page; extra == "docs"
|
|
69
69
|
Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
|
|
70
70
|
Requires-Dist: mypy; extra == "docs"
|
|
@@ -74,7 +74,7 @@ Requires-Dist: types-Pillow; extra == "docs"
|
|
|
74
74
|
Requires-Dist: types-PyYAML; extra == "docs"
|
|
75
75
|
Requires-Dist: types-python-dateutil; extra == "docs"
|
|
76
76
|
|
|
77
|
-
<p align="center"><img alt="amazon-orders -
|
|
77
|
+
<p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
|
|
78
78
|
|
|
79
79
|
[](https://pypi.org/project/amazon-orders)
|
|
80
80
|
[](https://pypi.org/project/amazon-orders)
|
|
@@ -83,12 +83,14 @@ Requires-Dist: types-python-dateutil; extra == "docs"
|
|
|
83
83
|
[](https://amazon-orders.readthedocs.io)
|
|
84
84
|
[](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
|
|
85
85
|
|
|
86
|
-
`amazon-orders` is an unofficial library that provides a
|
|
87
|
-
be used to interact with Amazon.com's consumer-facing website.
|
|
86
|
+
`amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
|
|
88
87
|
|
|
89
|
-
This works by parsing
|
|
90
|
-
stability, but as Amazon provides no official API to use, this package may break at any time.
|
|
91
|
-
|
|
88
|
+
This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
|
|
89
|
+
to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
|
|
90
|
+
the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
|
|
91
|
+
stable release.
|
|
92
|
+
|
|
93
|
+
This package only officially supports the English, `.com` version of Amazon.
|
|
92
94
|
|
|
93
95
|
## Installation
|
|
94
96
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p align="center"><img alt="amazon-orders -
|
|
1
|
+
<p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/amazon-orders)
|
|
4
4
|
[](https://pypi.org/project/amazon-orders)
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
[](https://amazon-orders.readthedocs.io)
|
|
8
8
|
[](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
|
|
9
9
|
|
|
10
|
-
`amazon-orders` is an unofficial library that provides a
|
|
11
|
-
be used to interact with Amazon.com's consumer-facing website.
|
|
10
|
+
`amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
|
|
12
11
|
|
|
13
|
-
This works by parsing
|
|
14
|
-
stability, but as Amazon provides no official API to use, this package may break at any time.
|
|
15
|
-
|
|
12
|
+
This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
|
|
13
|
+
to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
|
|
14
|
+
the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
|
|
15
|
+
stable release.
|
|
16
|
+
|
|
17
|
+
This package only officially supports the English, `.com` version of Amazon.
|
|
16
18
|
|
|
17
19
|
## Installation
|
|
18
20
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: amazon-orders
|
|
3
|
-
Version: 3.2.
|
|
4
|
-
Summary: A
|
|
3
|
+
Version: 3.2.9
|
|
4
|
+
Summary: A Python libray (and CLI) for Amazon order history
|
|
5
5
|
Maintainer-email: Alex Laird <contact@alexlaird.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2024 Alex Laird
|
|
8
|
+
Copyright (c) 2024-2025 Alex Laird
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -48,9 +48,9 @@ License-File: LICENSE
|
|
|
48
48
|
Requires-Dist: click>=7.1
|
|
49
49
|
Requires-Dist: requests>=2.23
|
|
50
50
|
Requires-Dist: amazoncaptcha>=0.4
|
|
51
|
-
Requires-Dist: beautifulsoup4>=4.
|
|
51
|
+
Requires-Dist: beautifulsoup4>=4.12
|
|
52
52
|
Requires-Dist: PyYAML>=5.1
|
|
53
|
-
Requires-Dist: python-dateutil>=2.8
|
|
53
|
+
Requires-Dist: python-dateutil>=2.8
|
|
54
54
|
Provides-Extra: dev
|
|
55
55
|
Requires-Dist: pytest; extra == "dev"
|
|
56
56
|
Requires-Dist: parameterized; extra == "dev"
|
|
@@ -64,7 +64,7 @@ Requires-Dist: twilio; extra == "dev"
|
|
|
64
64
|
Requires-Dist: pyngrok; extra == "dev"
|
|
65
65
|
Requires-Dist: lxml; extra == "dev"
|
|
66
66
|
Provides-Extra: docs
|
|
67
|
-
Requires-Dist: Sphinx; extra == "docs"
|
|
67
|
+
Requires-Dist: Sphinx<8.2; extra == "docs"
|
|
68
68
|
Requires-Dist: sphinx-notfound-page; extra == "docs"
|
|
69
69
|
Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
|
|
70
70
|
Requires-Dist: mypy; extra == "docs"
|
|
@@ -74,7 +74,7 @@ Requires-Dist: types-Pillow; extra == "docs"
|
|
|
74
74
|
Requires-Dist: types-PyYAML; extra == "docs"
|
|
75
75
|
Requires-Dist: types-python-dateutil; extra == "docs"
|
|
76
76
|
|
|
77
|
-
<p align="center"><img alt="amazon-orders -
|
|
77
|
+
<p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
|
|
78
78
|
|
|
79
79
|
[](https://pypi.org/project/amazon-orders)
|
|
80
80
|
[](https://pypi.org/project/amazon-orders)
|
|
@@ -83,12 +83,14 @@ Requires-Dist: types-python-dateutil; extra == "docs"
|
|
|
83
83
|
[](https://amazon-orders.readthedocs.io)
|
|
84
84
|
[](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
|
|
85
85
|
|
|
86
|
-
`amazon-orders` is an unofficial library that provides a
|
|
87
|
-
be used to interact with Amazon.com's consumer-facing website.
|
|
86
|
+
`amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
|
|
88
87
|
|
|
89
|
-
This works by parsing
|
|
90
|
-
stability, but as Amazon provides no official API to use, this package may break at any time.
|
|
91
|
-
|
|
88
|
+
This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
|
|
89
|
+
to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
|
|
90
|
+
the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
|
|
91
|
+
stable release.
|
|
92
|
+
|
|
93
|
+
This package only officially supports the English, `.com` version of Amazon.
|
|
92
94
|
|
|
93
95
|
## Installation
|
|
94
96
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
click>=7.1
|
|
2
2
|
requests>=2.23
|
|
3
3
|
amazoncaptcha>=0.4
|
|
4
|
-
beautifulsoup4>=4.
|
|
4
|
+
beautifulsoup4>=4.12
|
|
5
5
|
PyYAML>=5.1
|
|
6
|
-
python-dateutil>=2.8
|
|
6
|
+
python-dateutil>=2.8
|
|
7
7
|
|
|
8
8
|
[dev]
|
|
9
9
|
pytest
|
|
@@ -19,7 +19,7 @@ pyngrok
|
|
|
19
19
|
lxml
|
|
20
20
|
|
|
21
21
|
[docs]
|
|
22
|
-
Sphinx
|
|
22
|
+
Sphinx<8.2
|
|
23
23
|
sphinx-notfound-page
|
|
24
24
|
sphinx_autodoc_typehints
|
|
25
25
|
mypy
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__copyright__ = "Copyright (c) 2024 Alex Laird"
|
|
1
|
+
__copyright__ = "Copyright (c) 2024-2025 Alex Laird"
|
|
2
2
|
__license__ = "MIT"
|
|
3
3
|
|
|
4
4
|
|
|
@@ -88,16 +88,21 @@ class Selectors:
|
|
|
88
88
|
# CSS selectors for Order fields
|
|
89
89
|
#####################################
|
|
90
90
|
|
|
91
|
-
FIELD_ORDER_DETAILS_LINK_SELECTOR = "a.yohtmlc-order-details-link"
|
|
92
|
-
|
|
91
|
+
FIELD_ORDER_DETAILS_LINK_SELECTOR = ["a.yohtmlc-order-details-link",
|
|
92
|
+
# Would like to use this or similar, but not yet sure how consisten it is
|
|
93
|
+
# ".order-header__header-link-list-item:first-of-type a"
|
|
94
|
+
]
|
|
95
|
+
FIELD_ORDER_NUMBER_SELECTOR = ["[data-component='orderId']",
|
|
96
|
+
"[data-component='briefOrderInfo'] div.a-column",
|
|
93
97
|
".order-date-invoice-item bdi[dir='ltr']",
|
|
94
98
|
"bdi[dir='ltr']",
|
|
95
99
|
"span[dir='ltr']"]
|
|
96
100
|
FIELD_ORDER_GRAND_TOTAL_SELECTOR = ["div.yohtmlc-order-total span.value",
|
|
97
101
|
"div.order-header div.a-column.a-span2",
|
|
98
102
|
"div.order-header div.a-col-left .a-span9"]
|
|
99
|
-
FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='
|
|
103
|
+
FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='orderDate']",
|
|
100
104
|
"span.order-date-invoice-item",
|
|
105
|
+
"[data-component='briefOrderInfo'] div.a-column",
|
|
101
106
|
"div.a-span3"]
|
|
102
107
|
FIELD_ORDER_PAYMENT_METHOD_SELECTOR = "img.pmts-payment-credit-card-instrument-logo"
|
|
103
108
|
FIELD_ORDER_PAYMENT_METHOD_LAST_4_SELECTOR = "span:has(img.pmts-payment-credit-card-instrument-logo):last-child"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "amazon-orders"
|
|
3
3
|
dynamic = ["version"]
|
|
4
|
-
description = "A
|
|
4
|
+
description = "A Python libray (and CLI) for Amazon order history"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { file = "LICENSE" }
|
|
7
7
|
maintainers = [{ name = "Alex Laird", email = "contact@alexlaird.com" }]
|
|
@@ -10,9 +10,9 @@ dependencies = [
|
|
|
10
10
|
"click>=7.1",
|
|
11
11
|
"requests>=2.23",
|
|
12
12
|
"amazoncaptcha>=0.4",
|
|
13
|
-
"beautifulsoup4>=4.
|
|
13
|
+
"beautifulsoup4>=4.12",
|
|
14
14
|
"PyYAML>=5.1",
|
|
15
|
-
"python-dateutil>=2.8
|
|
15
|
+
"python-dateutil>=2.8"
|
|
16
16
|
]
|
|
17
17
|
classifiers = [
|
|
18
18
|
"Development Status :: 5 - Production/Stable",
|
|
@@ -45,7 +45,7 @@ dev = [
|
|
|
45
45
|
"lxml"
|
|
46
46
|
]
|
|
47
47
|
docs = [
|
|
48
|
-
"Sphinx",
|
|
48
|
+
"Sphinx<8.2",
|
|
49
49
|
"sphinx-notfound-page",
|
|
50
50
|
"sphinx_autodoc_typehints",
|
|
51
51
|
"mypy",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|