-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hello!
I'm encountering an issue where the item
scraping method fails intermittently when accessing Vinted.
Most of the time, the server responds with a 403 error and the following body:
{"code":106}
However, on some days (like today), the request instead returns a 404 Not Found error.
Is anyone else experiencing this problem? Everything was working regularly up until a week ago.
If you have found a workaround or know how to fix it, I would really appreciate your advice!
Describe the issue
When attempting to scrape item data from Vinted, the request either:
- Fails with a 403 Forbidden error and body
{"code":106}
, or - Returns a 404 Not Found error.
This happens even when using a valid session. It seems that either the API endpoints have changed, or stricter authentication and request validation has been introduced.
Steps to reproduce
- Initialize the scraper with valid session credentials.
- Attempt to call the
item
method on a known valid listing. - Observe that after multiple retries, the scraper fails with a 403 (or sometimes 404) error.
Expected behavior
The scraper should successfully retrieve the item data when provided with a valid session and a valid item ID.
Example
scraper = VintedScraper(session_id="valid_session_id")
item = scraper.item("valid_item_id")
print(item)
Tell us about your environment
- OS: Ubuntu
- OS Version: 22.04
- Python version: 3.11
Other information
- Observed errors:
- Most days:
403 Forbidden
with body{"code":106}
- Some days:
404 Not Found
error instead
- Most days:
- Related issue: Vinted may have updated its API, requiring new or stricter headers, authentication tokens, or request formats. IP or session-based blocking may also be involved.
- Suggestion:
- Review and update request headers (
User-Agent
,Accept-Language
, etc.) to better mimic a real browser. - Investigate if additional authentication parameters are now required.
- Check if URL patterns or anti-bot protections have changed.
- Review and update request headers (
Any insight or workaround from other users would be greatly appreciated!