Skip to content

Commit

Permalink
Version bump, prep for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Feb 20, 2025
1 parent 0bb8036 commit 73f9ded
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.8...HEAD)
## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.9...HEAD)

## [3.2.9](https://github.com/alexdlaird/amazon-orders/compare/3.2.8...3.2.9) - 2025-02-19

### Added

- Further support for Amazon's new `data-component` tag on order ID and order date.

## [3.2.8](https://github.com/alexdlaird/amazon-orders/compare/3.2.7...3.2.8) - 2025-02-18

Expand Down
2 changes: 1 addition & 1 deletion amazonorders/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__copyright__ = "Copyright (c) 2024-2025 Alex Laird"
__license__ = "MIT"
__version__ = "3.2.8"
__version__ = "3.2.9"
13 changes: 8 additions & 5 deletions amazonorders/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,21 @@ class Selectors:
# CSS selectors for Order fields
#####################################

FIELD_ORDER_DETAILS_LINK_SELECTOR = "a.yohtmlc-order-details-link"
FIELD_ORDER_NUMBER_SELECTOR = ["[data-component='briefOrderInfo'] div.a-column",
"[data-component='orderId']",
FIELD_ORDER_DETAILS_LINK_SELECTOR = ["a.yohtmlc-order-details-link",
# Would like to use this or similar, but not yet sure how consisten it is
#".order-header__header-link-list-item:first-of-type a"
]
FIELD_ORDER_NUMBER_SELECTOR = ["[data-component='orderId']",
"[data-component='briefOrderInfo'] div.a-column",
".order-date-invoice-item bdi[dir='ltr']",
"bdi[dir='ltr']",
"span[dir='ltr']"]
FIELD_ORDER_GRAND_TOTAL_SELECTOR = ["div.yohtmlc-order-total span.value",
"div.order-header div.a-column.a-span2",
"div.order-header div.a-col-left .a-span9"]
FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='briefOrderInfo'] div.a-column",
"[data-component='orderDate']",
FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='orderDate']",
"span.order-date-invoice-item",
"[data-component='briefOrderInfo'] div.a-column",
"div.a-span3"]
FIELD_ORDER_PAYMENT_METHOD_SELECTOR = "img.pmts-payment-credit-card-instrument-logo"
FIELD_ORDER_PAYMENT_METHOD_LAST_4_SELECTOR = "span:has(img.pmts-payment-credit-card-instrument-logo):last-child"
Expand Down

0 comments on commit 73f9ded

Please # to comment.