javix64 / web_scraping_vinted2.0

7 stars 0 forks source link

search function #1

Closed rcolpo closed 4 years ago

rcolpo commented 4 years ago

Is it possible to show only the results of a particular brand, or size? In this case, how to modify main_url='https://www.vinted.es/api/v2/items?per_page=96&page='

Thank you.

javix64 commented 4 years ago

in this moment i don't know how you can do it. But, you can scrap it, and after in CSV you can filter the data by brand, or size.

javix64 commented 4 years ago

the url for scrap Brands is: https://www.vinted.es/api/v2/items?brand_ids=53 -> this is Nike brand. the only thing, you must change the main_url for this. In the same way if you want size, you can filter with this: size_ids=X. where X is the size id that they have.

rcolpo commented 4 years ago

Thank you very much! So far, I was using selenium to navigate in Vinted and retrieve data, but your approach seems much more efficient. Thank you very much <3

javix64 commented 4 years ago

I feel so good that this script helps you. don't forget star the project! Thanks a lot! Maybe in the future i will add search option! :D