我正在使用Python和Tweepy编写一个基本程序,以获取Twitter屏幕名称的列表并下拉相应的用户ID。我已经实现了速率限制器,程序也正常工作,但当它遇到我的异常处理时,事情就会崩溃。我需要异常处理,因为Tweepy在运行时经常遇到问题。我在这里做错了什么?f = open('output2.txt', 'w') for x in HandleList1: u = api.get_user(id = x)
大部分繁重的工作都是作为一个模板标记blog_tags.py文件完成的,如下所示:def show_latest_tweetstweets = []
"""The import error is here to catch any server migrations were the tweepypackage not to be found in s