Update 酒店源.py

This commit is contained in:
frxz751113
2024-08-29 20:38:03 +08:00
committed by GitHub
parent 1ac63bea30
commit 454155b220
+2 -5
View File
@@ -156,9 +156,6 @@ for url in valid_urls:
pass pass
# 写入到文件中 # 写入到文件中
with open('iptv.txt', 'a', encoding='utf-8') as outfile: with open('iptv.txt', 'a', encoding='utf-8') as outfile:
outfile.write(new_line + '\n') outfile.write(new_line + '\n')
except requests.exceptions.RequestException as e:
print(f"Error fetching or processing the JSON data: {e}")
print("频道列表文件iptv.txt获取完成!") print("频道列表文件iptv.txt获取完成!")