Comments (4)
I fixed it by changing line 407 in google_images_download.py from info = data[11]
to info = data[22]
, but I advise debugging within this function to verify if this will work for you
from google-images-download.
How about not info = data[22]
but info = data[23]
?
However, it is true that this is only a temporary fix.
cf. #34
from google-images-download.
same problem,
when i try to download i got this error:
Evaluating...
Starting Download...
'NoneType' object is not subscriptable
Traceback (most recent call last):
File "google_images_download.py", line 1178, in <module>
main()
File "google_images_download.py", line 1166, in main
paths, errors = response.download(arguments) # wrapping response in a variable just for consistency
File "google_images_download.py", line 979, in download
paths, errors = self.download_executor(arguments)
File "google_images_download.py", line 1119, in download_executor
arguments) # get all image items and download images
File "google_images_download.py", line 906, in _get_all_items
object['image_link'], object['image_format'], main_directory, dir_name, count,
TypeError: 'NoneType' object is not subscriptable
Any idea how to fix it ??
from google-images-download.
Is no working for me. Even changing the 407 line....
from google-images-download.
Related Issues (18)
- exact_size does not work. HOT 2
- Could not open URL HOT 1
- "Some images not downloadable" HOT 2
- Missing Error Handling for Limit equal or less than 0 when executed using from another Python file
- Missing Error handling for delay below 0 when running lib from another Python file
- Missing Error handling for when the offset is negative when using in another Python File
- Missing Error handling for when the offset is above the limit passed when running from another Python file
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 8
- Error when running...
- Can not download more than 98 images with chromedriver HOT 2
- list index out of range Image objects data unpacking failed. Please leave a comment with the above error at https://github.com/hardikvasa/google-images-download/pull/298
- JSON output of Google API changed again I think HOT 21
- Image objects data unpacking failed. Please leave comment... HOT 4
- ChromeDriver Fix (WebDriver object has no attribute 'find_element_by*')
- [I solved it by changing your code] Error of TypeError: 'NoneType' object is not subscriptable HOT 4
- Stopped working - Image objects data unpacking failed HOT 3
- Unfortunately all 20 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter! HOT 1
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.