Skip to content

Commit

Permalink
Update coles endpoint
Browse files Browse the repository at this point in the history
Released another version. We really need to implement #3 to avoid this.
  • Loading branch information
Javex authored Oct 11, 2023
1 parent 2071c4c commit b94a265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hotprices_au/sites/coles.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_category(self, cat_slug):
product_count = 0
while True:
print(f'Page {params["page"]}')
response = self.session.get(f'https://www.coles.com.au/_next/data/20231002.02_v3.53.0/en/browse/{cat_slug}.json', params=params)
response = self.session.get(f'https://www.coles.com.au/_next/data/20231009.01_v3.54.1/en/browse/{cat_slug}.json', params=params)
try:
response.raise_for_status()
except requests.HTTPError:
Expand Down Expand Up @@ -217,4 +217,4 @@ def get_category_from_map(category_map, raw_item):


if __name__ == '__main__':
main()
main()

0 comments on commit b94a265

Please sign in to comment.