A simple Python script to generate a JSON Feed for search results on Amazon.
Uses BeautifulSoup 4 and served over Flask!
Use the Docker build to host your own instance.
-
Set your timezone as an environment variable (see docker docs):
TZ=America/Los_Angeles
-
Access the feed using the URL:
http://<host>/?query={query_string}
-
Optionally, filter by:
- country:
http://<host>/?query={query_string}&country={AU/BR/CA/CN/FR/DE/IN/IT/JP/MX/NL/ES/TR/AE/UK/US}
- max price:
http://<host>/?query={query_string}&max_price={int}
- min price:
http://<host>/?query={query_string}&min_price={int}
- buybox only:
http://<host>/?query={query_string}&buybox_only=yes
- strict mode (terms must appear in the title):
http://<host>/?query={query_string}&strict=yes
- country:
E.g.
Search results for "radeon 6800" on Amazon.sg between $800 to $1250:
https://www.amazon.sg/s?k=6800+amd&rh=p_36%3A80000-125000
Feed link:
http://<host>/?query=radeon%206800
Filtered feed link:
http://<host>/?query=radeon%206800&min_price=800&max_price=1250&country=sg&buybox_only=true&strict=true
Tested with: