Comments (5)
For the first issue with :
i think you are using the older version of this script. A few commits back, this was changed to use _
instead of :
because of compatibility issues in windows. Please update your script to the latest version of this repo.
Regarding the second issue, the correct command to search by image is si
or similar_images
. You can use your command...just replace -u with -si. The '-u' is used where you can copy google images link from your browser and just paste it here and it will download all the images from that page.
The description of -u might be little confusion. I will have it edited. Do let me know if that works for you.
from google-images-download.
Thanks @hardikvasa for your kind answer.
- solved
- tried your suggestion but still doesn't work. I was looking for example for images similar to wikipedia one:
py google_images_download.py -si "https://upload.wikimedia.org/wikipedia/commons/5/53/Wikipedia-logo-en-big.png" -l 20
but it gives me the following errors:
Item no.: 1 --> Item name = 2018-04-03 13_13_29
Evaluating...
HTTP Error 400: Bad Request
Starting Download...
Traceback (most recent call last):
File "google_images_download.py", line 775, in
errorCount = bulk_download(search_keyword,suffix_keywords,prefix_keywords,limit,main_directory)
File "google_images_download.py", line 645, in bulk_download
items,errorCount = _get_all_items(raw_html,main_directory,dir_name,limit) #get all image items and download images
File "google_images_download.py", line 574, in _get_all_items
object, end_content = _get_next_item(page)
File "google_images_download.py", line 540, in _get_next_item
start_line = s.find('rg_meta notranslate')
AttributeError: 'NoneType' object has no attribute 'find'
from google-images-download.
@marcelloexp386 Unfortunately I could not reproduce this error.
When I tried using your query from a windows 10, python 3 environment, I could successfully download all 20 images similar to the one you provided in the link.
Do you see this error for different image links or only this one image?
from google-images-download.
Closing this issue for now. Feel free to reply back if this issue still persist.
from google-images-download.
You are right! Now it works for me too. I tried both in gitbash and in powershell ... and it works.
from google-images-download.
Related Issues (20)
- Save image urls to file without downloading images?
- Could not open URL HOT 3
- is there a way for the json to show image description if its in hebrew?
- Images do get downloaded according to the terminal and the log file but do not show up the folder
- Does not work with any search terms. HOT 4
- AttributeError: 'WebDriver' object has no attribute 'find_element_by_css_selector' HOT 4
- finds zero pics to be downloaded (in a few millis) HOT 2
- 'NoneType' object is not subscriptable error HOT 13
- TypeError: 'NoneType' object is not subscriptable HOT 5
- App is broken HOT 12
- Cannot Use, No Image Downloadable HOT 3
- A way for "ignore_urls" to work when "no_download" is true HOT 1
- cant downlload anything HOT 11
- Hi
- Selenium combined updates HOT 2
- Cannot download more than 20 images HOT 1
- Error Downloading Images Using google-images-download (CLI) Google Colab Available
- Downloaded 0 image using the example this repo document provided HOT 2
- Size parameter does not work
- 关于无法下载图片的猜想
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 google-images-download.