image-crawler-python icon indicating copy to clipboard operation
image-crawler-python copied to clipboard

TypeError

Open wisearchitect opened this issue 6 years ago • 0 comments

Hi, The code works with the default URL, but when I change it I get the following error messages:

Traceback (most recent call last): File "/Users/danial/Downloads/image-crawler-python-master/main.py", line 15, in links = page.fetch_links() File "/Users/danial/Downloads/image-crawler-python-master/Crawler/Page.py", line 31, in fetch_links url_finder.feed(url_finder.html_string()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/html/parser.py", line 110, in feed self.rawdata = self.rawdata + data TypeError: can only concatenate str (not "NoneType") to str

Any ideas on how to fix this issue?

wisearchitect avatar Sep 08 '19 01:09 wisearchitect