Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 12, 2024
2 parents 177fab9 + f63be64 commit 1f65b89
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,12 @@ def get_content_from_url(url, n=10):
# print('Lỗi khi tải link đăng ký, bỏ qua link đăng ký này')
print('----------------------------')
pass
response_content = response.content
response_text = response_content.decode('utf-8-sig') # utf-8-sig 可以忽略 BOM
#response_encoding = response.encoding
try:
response_content = response.content
response_text = response_content.decode('utf-8-sig') # utf-8-sig 可以忽略 BOM
#response_encoding = response.encoding
except:
return ''
if response_text.isspace():
print('没有从订阅链接获取到任何内容')
# print('Không nhận được proxy nào từ link đăng ký')
Expand Down

0 comments on commit 1f65b89

Please sign in to comment.