我正在尝试从csv文件获取Twitter帐户的创建日期。我不确定该如何处理。我仍在学习如何编码,因此如果有人可以帮助我,这将是一个很大的帮助。先感谢您。from twython import Twythonimport pandas as pdimport requestst = Twython(app_key='', app_secret='', oauth_token='', oauth_token_secret='')data = "file.xlsx"handles = pd.read_excel(data, sheet_name=None)comma_separated_string = ",".join(data)output = t.lookup_user(screen_name=comma_separated_string)username_list=[]for user in output:username_list.append(user['created_at'])print username_list
2 回答

手掌心
TA贡献1942条经验 获得超3个赞
,首先,您应该搜索如何使用python从Twitter提取数据或从Twitter Api提取数据,并且将学习如何构建您的代码以及构建代码的内容,例如使用Twitter访问键和tweepy库。
添加回答
举报
0/150
提交
取消