Vinted data & search from Vinted.fr
Vinted data can be visualized in Google Sheets or in a Google Data Studio report . Those are actualized each day at 09:00 (GMT+2) and stored in Google sheets and in this GitHub repository in the folder DATA.
Currently the BRAND ID is the one that take the most time to collect, as I didn't found a query to get all IDs with only one requests or just a few. Currently, data collection for this identifier is done with a query for each brand (more than 2.000 brands currently).
Currently I investigate the Vinted API to find a better solution than scraping the HTML.
The Vinted search works perfectly and handle 7 different IDs (catalogs, colors, brands, sizes, materials, status, countries). It returns a dictionary with for the key "items" a list of items found with the Search used. This method can be found within the file collect_data.py. You can therefore use it as follow :
from collect_data import searchVinted
search = searchVinted(
catalog=[221],
color=["pink"],
brand=[53])
This should built the corresponding url : https://www.vinted.fr/vetements?search_text=&per_page=120&page=1&price_from=0&price_to=1000000¤cy=EUR&catalog%5B%5D=221&color_id%5B%5D=5&brand_id%5B%5D=53
And returns the following dictionary :