GoogleImageCrawler: TypeError: 'NoneType' object is not iterable
See original GitHub issueHi there, I just tried out your library, but unfortunately, I get an error:
2021-03-06 13:56:54,609 - INFO - icrawler.crawler - start crawling...
2021-03-06 13:56:54,609 - INFO - icrawler.crawler - starting 1 feeder threads...
2021-03-06 13:56:54,610 - INFO - feeder - thread feeder-001 exit
2021-03-06 13:56:54,611 - INFO - icrawler.crawler - starting 1 parser threads...
2021-03-06 13:56:54,612 - INFO - icrawler.crawler - starting 1 downloader threads...
2021-03-06 13:56:55,160 - INFO - parser - parsing result page https://www.google.com/search?q=cat&ijn=0&start=0&tbs=&tbm=isch
Exception in thread parser-001:
Traceback (most recent call last):
File "C:\Users\WILLI\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\WILLI\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\Projekte\Foo\source\backend_prototyp\venv\lib\site-packages\icrawler\parser.py", line 104, in worker_exec
for task in self.parse(response, **kwargs):
TypeError: 'NoneType' object is not iterable
2021-03-06 13:56:59,615 - INFO - downloader - no more download task for thread downloader-001
2021-03-06 13:56:59,615 - INFO - downloader - thread downloader-001 exit
2021-03-06 13:56:59,616 - INFO - icrawler.crawler - Crawling task done!
Process finished with exit code 0
But I just use your example code:
from icrawler.builtin import GoogleImageCrawler
google_crawler = GoogleImageCrawler(storage={'root_dir': 'D:'})
google_crawler.crawl(keyword='cat', max_num=100)
How can I fix the problem?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
How to Fix TypeError in Python: NoneType Object Is Not Iterable
The Python TypeError: NoneType Object Is Not Iterable is an exception that occurs when trying to iterate over a None value. Learn how...
Read more >TypeError: 'NoneType' object is not iterable in Python
It means the value of data is None .
Read more >Python TypeError: 'NoneType' object is not iterable Solution | CK
If you try to iterate over a None object, you encounter the TypeError: 'NoneType' object is not iterable error.
Read more >今まで使えていた icrawler が TypeError で急に動かなくなった ...
事前に、ソースコードgoogle.py の書き換えは終わっています。個々では、以下のような TypeError: 'NoneType' object is not.
Read more >typeerror: 'nonetype' object is not iterable: How to solve this ...
In this guide, we talk about what typeerror: 'nonetype' object is not iterable error means walk through an example to clarify.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not relevant to this issue, looks like https://github.com/hellock/icrawler/issues/107
Sorry again for the inconvenience, I have updated the package on pypi