Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Temporary IP bans #8

Open
Redawx opened this issue Jun 23, 2023 · 1 comment
Open

Temporary IP bans #8

Redawx opened this issue Jun 23, 2023 · 1 comment

Comments

@Redawx
Copy link

Redawx commented Jun 23, 2023

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
Copy link
Owner

vlourme commented Jun 29, 2023

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

  • Having a INTERVAL environment too low, keep it around 60 to 120 seconds.
  • Having too much searches saved
  • Having another Vinted bot running at the same time on the same IP.

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.

@vlourme vlourme changed the title 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 Temporary IP bans Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants