📖完善文档,增加超时时间,继续尝试新方式自部署

This commit is contained in:
2024-07-27 17:14:28 +08:00
parent 2056f642f9
commit 547f72d8a9
5 changed files with 24 additions and 26 deletions

View File

@ -9,7 +9,7 @@ headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
}
timeout = (5, 10) # 连接超时和读取超时防止requests接受时间过长
timeout = (10, 15) # 连接超时和读取超时防止requests接受时间过长
def format_published_time(time_str):
"""
@ -184,6 +184,7 @@ def process_friend(friend, session, count):
"""
name, blog_url, avatar = friend
feed_type, feed_url = check_feed(blog_url, session)
print(f"========“{name}”的博客“{blog_url}”的feed类型为“{feed_type}”========")
if feed_type != 'none':
feed_info = parse_feed(feed_url, session, count)