iamatulsingh / pinscrape

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

"nothing to download" #7

Closed AInoriex closed 1 year ago

AInoriex commented 1 year ago

I have tried some keywords to scrape, but it still showed "nothing to download".

PS F:\system_project\pinterest-downloader\demo3\PinterestScraper> python .\scraper.py -q messi
messi <class 'str'>

 Downloading....

Nothing to download !!

I set the proxy like

proxy_list = {
    "http":"http://127.0.0.1:10809",
    "https":"http://127.0.0.1:10809"
}

and I'm able to view the pinterest.com with the proxy.

Is there a way to scrape succeed? I hope to hear you soon, thx a lot!

iamatulsingh commented 1 year ago

Hi @AInoriex , currently I don't have any proxies to test with. Also, can you share the json output returned from the code like below one?

json_output = pinscrape.scraper.scrape("messi", "output", {}, 10, 15)
AInoriex commented 1 year ago

I'm grateful for your timely apply!!!

I tried later and i could be able to run oddly, what its result like

PS F:\system_project\pinterest-downloader\demo3\PinterestScraper> python .\scraper.py -q ganyu
ganyu <class 'str'>
[Start] 18:07:43

 Downloading....

Downloading completed !!
Details ['https://i.pinimg.com/originals/b5/a7/f5/b5a7f52b54ab24fe1451ceaee46a079d.jpg', 'https://i.pinimg.com/originals/9e/84/de/9e84de6611f6917c37e86a2294fc106a.png', 'https://i.pinimg.com/originals/f4/e0/b5/f4e0b5b1e70b01cf77d15a3d6040fabb.jpg', 'https://i.pinimg.com/originals/3d/09/6e/3d096e8c88aacee4795e26f46dfd3078.jpg', 'https://i.pinimg.com/originals/a9/53/fd/a953fd5a4078017b2e8769f90012370f.jpg', 'https://i.pinimg.com/originals/c1/36/37/c13637d3bc985ef535bb40a30ef4b87b.jpg', 'https://i.pinimg.com/originals/20/fb/c1/20fbc1d9207fee76b33c3812333e07e4.png', 'https://i.pinimg.com/originals/4d/2d/ac/4d2dac86dc4e87778e953846677b79e6.jpg', 'https://i.pinimg.com/originals/50/fe/6e/50fe6ecbdea1dd53abfd6b085430c9f0.png', 'https://i.pinimg.com/originals/d0/24/c9/d024c9e200b8ec5302ad26b7ebd8c3bc.jpg']

Total images downloaded: 10
[End] 18:13:03

Here is the api code

keyword = "ganyu"
output_folder = f"./Downloads/{keyword}"
proxy_list = {
    "http":"http://127.0.0.1:10809",
    "https":"http://127.0.0.1:10809"
}
threads = 2
max_imgs = 10

details = pinscrape.scraper.scrape(keyword, output_folder, proxy_list, threads, max_imgs)

It could get the pics' address successfully, but there was nothing in the target output folder(like .\Downloads\ganyu)

Now I'm attempting to add some logs and try to find out the reason. Do you have any ideas to solve this issue?

iamatulsingh commented 1 year ago

Hard to say, may be the logs can help.

AInoriex commented 1 year ago

Hard to say, may be the logs can help.

Thanks a lot, bro!