def run(): weibo = Weibo() # 热搜 searches, resp = weibo.get_hot_search() if resp: save_raw_content(resp.text, 'hot-search') # 话题榜 topics, resp = weibo.get_hot_topic() if resp: save_raw_content(resp.text, 'hot-topic') # 最新数据 readme = generate_readme(searches, topics) save_readme(readme) # 归档 archiveMd = generate_archive_md(searches, topics) save_archive_md(archiveMd)