You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/tmp/code/amazon.py", line 389, in
main(sys.argv[1:])
File "/tmp/code/amazon.py", line 165, in main
orders = amazon_orders.get_order_history(year=year, full_details=True)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/orders.py", line 76, in get_order_history
order: Order = self.config.order_cls(order_tag, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 40, in init
self.shipments: List[Shipment] = clone.shipments if clone else self._parse_shipments()
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 91, in _parse_shipments
shipments: List[Shipment] = [self.config.shipment_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 91, in
shipments: List[Shipment] = [self.config.shipment_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 30, in init
self.items: List[Item] = self._parse_items()
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 56, in _parse_items
items: List[Item] = [self.config.item_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 56, in
items: List[Item] = [self.config.item_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/item.py", line 30, in init
self.title: str = self.safe_simple_parse(selector=self.config.selectors.FIELD_ITEM_TITLE_SELECTOR,
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 149, in safe_simple_parse
return self.safe_parse(self.simple_parse, selector=selector, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 54, in safe_parse
return parse_function(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 133, in simple_parse
raise AmazonOrdersEntityError(
amazonorders.exception.AmazonOrdersEntityError: When building Item, field for selector ["[data-component='itemTitle']", '.yohtmlc-item a', '.yohtmlc-product-title'] was None, but this is not allowed.
Code did not change. Used to work fine few days ago.
Steps to Reproduce
Use amazon_orders.get_order_history command
Expected Behavior
No response
The text was updated successfully, but these errors were encountered:
This issue is stale because it has remained open with no further activity on it. Comment with additional context or the issue will be closed automatically. Thank you for your contribution!
Acknowledgements
debug
mode and am attaching relevant console logs and HTML filesOperating System
Linux
Python Version
3.10.12
amazon-orders Version
3.2.1
Describe the Bug
The following error is being generated when running
orders = amazon_orders.get_order_history(year=2024, full_details=True)
File "/tmp/code/amazon.py", line 389, in
main(sys.argv[1:])
File "/tmp/code/amazon.py", line 165, in main
orders = amazon_orders.get_order_history(year=year, full_details=True)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/orders.py", line 76, in get_order_history
order: Order = self.config.order_cls(order_tag, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 40, in init
self.shipments: List[Shipment] = clone.shipments if clone else self._parse_shipments()
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 91, in _parse_shipments
shipments: List[Shipment] = [self.config.shipment_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/order.py", line 91, in
shipments: List[Shipment] = [self.config.shipment_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 30, in init
self.items: List[Item] = self._parse_items()
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 56, in _parse_items
items: List[Item] = [self.config.item_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/shipment.py", line 56, in
items: List[Item] = [self.config.item_cls(x, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/item.py", line 30, in init
self.title: str = self.safe_simple_parse(selector=self.config.selectors.FIELD_ITEM_TITLE_SELECTOR,
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 149, in safe_simple_parse
return self.safe_parse(self.simple_parse, selector=selector, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 54, in safe_parse
return parse_function(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 133, in simple_parse
raise AmazonOrdersEntityError(
amazonorders.exception.AmazonOrdersEntityError: When building Item, field for selector
["[data-component='itemTitle']", '.yohtmlc-item a', '.yohtmlc-product-title']
was None, but this is not allowed.Code did not change. Used to work fine few days ago.
Steps to Reproduce
Use amazon_orders.get_order_history command
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: