Closed AlexRyabikov closed 2 weeks ago
Hi @AlexRyabikov, I have updated code to tackle this new issue. You can upgrade to version v3.2.4 and test again. Please let me know if the problem still persist.
Hi, thanks! Yep, unfortunately, after update the problem is still persist (update was via 'pip uninstall pinscrape > pip install pinscrape'):
I tried the same keyword but it worked for me. I'll try to think more.
How do you think, could it be geo-related problem? I see, that your class start_scraping use url like: https://www.bing.com/search?q={keyword}&first=1&FORM=PERE
But when I'm trying search in Bing from my current location with link like: https://www.bing.com/search?q=vinyl&first=1&FORM=PERE
I see 0 results from the Pinterest, just shops and other sites
Hm, no, it seems its wrong hypothesis. Keyword "vynil pinterest" returns results from Pinterest in Bing, but still "Nothing to download" when I run script
Ya, I understand but the problem is I'm able to download images using the search keyword you have used. I'm trying to make my code little better and I'll add one beta code to use from now on but there is a high chance that pinterest might detect something unusual and block it.
Hi! I've built a docker container on my VDS in different country and, it seems, ur library is really geo-related. Because on server script works perfect, look:
Hi, thanks for your efforts. I have written new code and I forgot to publish this. New code is totally different depending on Pinterest so if Pinterest have geo based results, then it will show the same else all the results. No more search engine code required.
Hi @AlexRyabikov , I have pushed a new release. Please check the README how to use and also upgrade to version 4.0.0. I hope this would fix the issue. If issue still persist then it, then this is how Pinterest works. This could be a limitation for this library and may be resolve using proxy.
Thank! Now I'm getting this during process of installation: ` Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\Users\alex-\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip.`
Hi, I just installed it on Windows, WSL and Linux system and all worked fine. I think please currently don't use python 3.12. Lot's of things are changed in that and I'll need good amount of time to check what all things I need to update/change/remove. Please try once with python 3.11 or earlier using python virtual environment.
Hi! Maybe I'm doing wrong, but, idk, it seems its really geo-related behavior (with 3.11):
using_search_engine - same error using_pinterest_apis - returns nothing
I guess its really how Pinterest works :) I will use my ubuntu server for this library
Thanks for your help!
Sorry for that. I thought calling Pinterest api directly will work but as you said it seems Pinterest shows data according to geo location. May be you can try proxy of some country if you really want geo based data.
If you want, you can close this issue else leave it for a while.
Yep, thanks again :)
Hi! I installed pinscrape via pip and tried several keywords. In each case, I encountered the following error:
Here's my code (just the example from the documentation):
I'm using Python version 3.12.
Output of "pip show pinscrape":
Could you help me please determine what the issue might be? Also, how can I obtain more debugging information?
Thanks!