Gertje823 / Vinted-Scraper

This is a tool to scrape/download images and data from Vinted & Depop using the API and stores the data in a SQLite database.
GNU General Public License v3.0
82 stars 18 forks source link

error running code #38

Open mblogs40 opened 10 months ago

mblogs40 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

no