mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-12 09:51:06 +01:00
fix encoding
This commit is contained in:
parent
c41c11dae0
commit
17d6d0e538
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ class SourceMapExtractor(object):
|
||||||
return self._get_remote_data(result.url)
|
return self._get_remote_data(result.url)
|
||||||
|
|
||||||
if result.status_code == 200:
|
if result.status_code == 200:
|
||||||
|
result.encoding = 'utf-8'
|
||||||
return result.text, result.url
|
return result.text, result.url
|
||||||
else:
|
else:
|
||||||
print("WARNING: Got status code %d for URI %s" % (result.status_code, result.url))
|
print("WARNING: Got status code %d for URI %s" % (result.status_code, result.url))
|
||||||
|
|
Loading…
Reference in a new issue