I don't know why my code is returning this error, I can't seem to debug it.
TypeError: expected string or bytes-like object
Here is what I'm using to download
self.headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' }
self.request = urllib.request.Request(url, headers=self.headers)
urllib.request.urlretrieve(self.request, reporthook=report)