Comments (10)
Can you provide more specific environmental information?
My environment is as follows, verified that there is no problem.
- chrome 96.0.4664.45
- driver 96.0.4664.35
- mac OS 12.0.1
❯ conda create -n bing-images python=3.8.5
❯ conda activate bing-images
❯ export PATH=/Users/catchzeng/chromedriver:$PATH
❯ which chromedriver
/Users/catchzeng/chromedriver/chromedriver
❯ python download.py
Save path: /Users/catchzeng/Desktop/cat
Crawled 70 image urls.
Downloading images
#1 https://pngimg.com/uploads/cat/cat_PNG50449.png Downloaded
#2 https://purepng.com/public/uploads/large/purepng.com-catanimalscat-981524673949tj5ns.png Downloaded
#3 https://pngimg.com/uploads/cat/cat_PNG50448.png Downloaded
#4 https://pngimg.com/uploads/cat/cat_PNG50445.png Downloaded
#5 http://pngimg.com/uploads/cat/cat_PNG50482.png Downloaded
#6 http://purepng.com/public/uploads/large/purepng.com-sitting-catcatcatsanimalspetscute-cat-25152016380020k8o.png Downloaded
#7 https://purepng.com/public/uploads/large/515023057367pjqxmsnx7rgiihwwfa1yopebtptssyevfbjqwwbw8cxyucv6srtcaraobaotirnmd7zjkf3hi7oyexhybu0rkyuafuwk0hnxr5h.png Downloaded
#8 https://purepng.com/public/uploads/large/515023079169r5z6n4yjylprjqgiee36v9xirrxktv1oqnq4xbl9fzzxdbwpcsjfbypqjmwak4vfimpjchla8rxfuhpo7wdsrwf1gixcaxee7in.png Downloaded
#9 https://pngimg.com/uploads/cat/cat_PNG100.png Downloaded
#10 https://pngimg.com/uploads/cat/cat_PNG50479.png Downloaded
#11 https://pngimg.com/uploads/cat/cat_PNG50447.png Downloaded
#12 https://pngimg.com/uploads/cat/cat_PNG50433.png Downloaded
#13 https://purepng.com/public/uploads/large/purepng.com-catcat-animal-981524644802hvred.png Downloaded
#14 https://pngimg.com/uploads/cat/cat_PNG50440.png Downloaded
#15 https://purepng.com/public/uploads/large/purepng.com-cat-cuteanimalscats-115205020723cicy.png Downloaded
#16 https://pngimg.com/uploads/cat/cat_PNG113.png Downloaded
#17 https://pngimg.com/uploads/cat/cat_PNG50430.png Downloaded
#18 http://pngimg.com/uploads/cat/cat_PNG50424.png Downloaded
#19 https://pre00.deviantart.net/dc4a/th/pre/f/2017/362/3/d/cat_png_2_by_bouzid27-dby5uu3.png Downloaded
#20 https://pngimg.com/uploads/cat/cat_PNG50545.png Downloaded
Renaming images
Finished renaming
Done
Elapsed time: 86.24s
from bing_images.
Sure, sorry about that.
macOS 11.6 (20G165)
Google Chrome: 95.0.4638.69 (Official Build) (x86_64)
ChromeDriver: 95.0.4638.69
I think I setup conda with python 3.8. I'll update to 3.8.5 and see if it makes any difference.
from bing_images.
Well, I found that Google Chrome was trying to update itself, so it was looking for the newer chrome driver when I ran the python script. So I updated Chrome, trashed the old drivers and downloaded the latest one and placed it in the PATH. Still got the same errors though.
I'm going to try to boot in safe mode and then reboot again to make sure nothing squirrely is going on. I'm now using the same version of python, Chrome and ChromeDriver as you are.
from bing_images.
Okay, so I safe booted, ran daily weekly monthly maintenance cron jobs and restarted again. Have made some progress.
• single word searches work
• multiple word searches fail
This Works
from bing_images import bing
bing.download_images("cat",
100,
output_dir="/Users/me/Desktop/cat",
pool_size=10,
force_replace=True)
This errors out the same way as before
from bing_images import bing
bing.download_images("old cat",
100,
output_dir="/Users/me/Desktop/cat",
pool_size=10,
force_replace=True)
Using two words it does launch Chrome, the correct search terms are used, images load, page scrolls down, etc, but then the same error happens in terminal and it doesn't download anything.
from bing_images.
I have tried it and everything is fine, as shown in the picture below.
Can you provide the error logs?
from bing_images.
@KeygenLLC I will close this issue temporarily, if you still have questions, you can reopen it again.
from bing_images.
Sorry for the delay. Been busy with other work.
strange. I have it in a virtual env so not sure what might be causing a conflict.
Which log do you need to see the output of? Just want to make sure I grab the correct one.
Thanks
from bing_images.
You can use conda to create a new environment to verify it, the code is as follows.
❯ conda create -n bing-images python=3.8.5
❯ conda activate bing-images
❯ pip install bing-images
if there is an error, please copy the error log here for communication.
from bing_images.
Will do. thanks
from bing_images.
Well, good news is it worked. :)
Not sure if it's because I had a lower version of python at first, or maybe the env just got corrupted somehow. I didn't install any other packages, so... idk. I tend to get weird behavior like this that turns out to be more like ghosts in the machine than actual bugs.
Either way, it is working. Thanks for the help and for the cool tool.
from bing_images.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bing_images.