vlourme / vintedpy

Get alerted on Discord when new Vinted articles are published 🛒
GNU General Public License v3.0
29 stars 9 forks source link

Temporary IP bans #8

Open Redawx opened 1 year ago

Redawx commented 1 year ago

ile "C:\Users\orsin\Desktop\VintDiscord\vintedpy\main.py", line 25, in run_background items = scrape(db, sub) ^^^^^^^^^^^^^^^ File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\scraper.py", line 21, in scrape response = search(params["url"], {"per_page": 20}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 96, in search session = get_oauth_token() ^^^^^^^^^^^^^^^^^ File "C:\Users\orsin\Desktop\VintDiscord\vintedpy\api.py", line 36, in get_oauth_token raise Exception('Failed to get oauth token') Exception: Failed to get oauth token

vlourme commented 1 year ago

The bot has been working for months on my personal server, you certainly got temporarily banned. This can be caused by:

This bot has no proxy feature included, it should work great for personal usage with 60-120 check interval and ~10 saved searches. To be honest, I could include proxy usage, but free proxy are generally trash and rotative proxies are too expensive. I prefer keeping a high interval with not too much searches.