iamatulsingh / pinscrape

A simple library to scrape Pinterest images written in Python
MIT License
78 stars 15 forks source link

Question #6

Closed makseem77 closed 1 year ago

makseem77 commented 1 year ago

Is the scraping random ? Is there a way to scrape the first results ?

iamatulsingh commented 1 year ago

It's not random. It always scrape first to last results.

makseem77 commented 1 year ago

Oh okay, it's weird I don't get the same results when I do the research manually. Do you have an idea why ?

iamatulsingh commented 1 year ago

May be because Google results differ. But may be you can pull the code and debug the result once.

makseem77 commented 1 year ago

oh okay, if i understand well (i don't know much about coding sorry), the scraper does a research for "my keyword" + "pinterest" in google ? not directly in pinterest ?

iamatulsingh commented 1 year ago

True, I did this way so at least we can give credit to the original author of those images and don't have to use official API too.

makseem77 commented 1 year ago

I see, so in theory I could even remove the "pinterest" to scrape images from google directly right ?

iamatulsingh commented 1 year ago

Yes you can change that but the code is written to scrape data from Pinterest so it will not work with any other websites. You'll need to change the code according to your need.

makseem77 commented 1 year ago

I see, thanks for your answers !

iamatulsingh commented 1 year ago

No problem at all.