0
(Python/Tweepy) - 我可以查询包含特定URL的twitter个人资料吗?
凡说google.com ...
我想创建一个脚本,它的URL“google.com”,然后返回个人资料页或信息。
到目前为止,我所做的完全是我想要的,除非您必须为其指定屏幕名称,然后使用屏幕名称来获取配置文件。
import tweepy
from pprint import pprint
consumer_key = 'something'
consumer_secret = 'something'
access_token = 'something'
access_token_secret = 'something'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
user =api.get_user('google')
print user
如果Tweepy不提供对此的支持,我愿意接受所有建议。谢谢。
感谢的形象描述,该查询工作。结果的格式是什么? JSON? – user3063864
Twitter API终结点返回json,有时驱动程序将其转换为其他内容 – nickmilon