Open Redawx opened 1 year ago
The bot has been working for months on my personal server, you certainly got temporarily banned. This can be caused by:
INTERVAL
environment too low, keep it around 60 to 120 seconds.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.
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