Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Aug 11, 2024
1 parent 375cdbf commit f63be64
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 f63be64

Please sign in to comment.