Skip to content

TypeError #2

@wisearchitect

Description

@wisearchitect

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions