Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running code #38

Open
mblogs40 opened this issue Aug 21, 2023 · 3 comments
Open

error running code #38

mblogs40 opened this issue Aug 21, 2023 · 3 comments

Comments

@mblogs40
Copy link

C:\Users\Admin\Downloads\python\Vinted-Scraper-2>python main.py -u 100625605
Traceback (most recent call last):
File "C:\Users\Admin\Downloads\python\Vinted-Scraper-2\main.py", line 31, in
vinted_session = v.create_session()
File "C:\Users\Admin\Downloads\python\Vinted-Scraper-2\Vinted.py", line 115, in create_session
csrfToken = req.text.split('<meta name="csrf-token" content="')[1].split('"')[0]
IndexError: list index out of range

@mblogs40
Copy link
Author

C:\Users\Admin\Downloads\python\Vinted-Scraper-main\Vinted-Scraper-main>python scraper.py
Traceback (most recent call last):
File "C:\Users\Admin\Downloads\python\Vinted-Scraper-main\Vinted-Scraper-main\scraper.py", line 601, in
session = vinted_session()
File "C:\Users\Admin\Downloads\python\Vinted-Scraper-main\Vinted-Scraper-main\scraper.py", line 61, in vinted_session
csrfToken = req.text.split('<meta name="csrf-token" content="')[1].split('"')[0]
IndexError: list index out of range

@Gertje823
Copy link
Owner

I could not reproduce the issue. It looks like the script is not able to extract the csrf token.
Are using a vpn/proxy to download?

@mblogs40
Copy link
Author

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants