michie1 / bc

Script that reads all orders of a topic from wtos.nl, puts everything in the cart of bike-components.de and generates a Google spreadsheet with Python, lxml, Google API, Docker
5 stars 5 forks source link

Update get_option #45

Closed michie1 closed 4 years ago

michie1 commented 4 years ago

Bike-components got updated.

I think we need to update the following function:

https://github.com/michie1/bc/blob/1cd32c751703546c0645ae0cb38c2aa28b0cfda2/wtosbc/bc.py#L191

bcvanmeurs commented 4 years ago

This is my first suggestion to fix this: https://github.com/bcvanmeurs/bc/commit/58495163de5bf7a065365c8fa48d3a8f72def512 The get_option was not the issue, but get_product_id Moreover the Bike-components API seems to have changed. Several POST requests had to be changed.

Results are in http://wtos.nl/bc?test

This works for now, but probably not when price alerts are used. So the next step would be to test that and check other API calls.

michie1 commented 4 years ago

Fixed by #46