我是编码的新手,我在Tweepy文档的代码中苦苦挣扎。在我的Pycharm IDE中,process_page
显示为Unresolved Reference
错误。我该如何纠正?谢谢
# Only iterate through the first 200 statuses
for status in tweepy.Cursor(API.user_timeline).items(200):
process_status(status)
# Only iterate through the first 3 pages
for page in tweepy.Cursor(API.user_timeline).pages(3):
process_page(page)
答案 0 :(得分:0)
没有process_page这样的功能-它是tweety文档中的模板。它们向您展示了如何使用循环,以及循环中的函数应该用自己的代码替换(无论您要使用此数据做什么)