mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-03 13:37:47 +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)
|
||||
|
||||
if result.status_code == 200:
|
||||
result.encoding = 'utf-8'
|
||||
return result.text, result.url
|
||||
else:
|
||||
print("WARNING: Got status code %d for URI %s" % (result.status_code, result.url))
|
||||
|
|
Loading…
Reference in a new issue