alexdlaird / amazon-orders

A CLI and library for interacting with Amazon order history
https://amazon-orders.readthedocs.io/en/latest
MIT License
14 stars 7 forks source link

CSS Selectors #5

Closed alexdlaird closed 8 months ago

alexdlaird commented 8 months ago

Currently we're relying on beautifulsoup's find() methods and the like. Chaining them together can be brittle, and also just requires more time and testing if/when they need updated. Relying on a single CSS Selector (when possible or XPath for every field would also make the library much more extendable (and more quickly patched when things break).

alexdlaird commented 8 months ago

CSS have been implemented in orders.py and sessions.py, just need to implement for entities next.