yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
463 stars 125 forks source link

Shopify monitors broken? #124

Closed fttdgc closed 2 years ago

fttdgc commented 2 years ago

All` Shopify monitor runs result in this error;

[root@host1 monitor]# screen -S Shopify File "Shopify/ShopifyMonitor.py", line 199, in monitor items = scrape_site(CONFIG['URL'], proxy, headers) File "Shopify/ShopifyMonitor.py", line 44, in scrape_site output = json.loads(html.text)['products'] File "/usr/local/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

....

The error then repeats about 6-7 more times.

Have tried on multiple systems and multiple shopify stores, all producing the same error.

fttdgc commented 2 years ago

Error was a result of the free proxies being blocked.