尝试连接Twitter

时间:2017-04-07 20:44:18

标签: python ssl twitter

奇怪的是,我已经使用这段代码几个星期了,突然间我开始收到这个错误:[SSL:WRONG_VERSION_NUMBER]错误的版本号(_ssl.c:749) 这是代码:

consumer = oauth.Consumer(key=CONSUMER_KEY, secret=CONSUMER_SECRET)
    access_token = oauth.Token(key=ACCESS_KEY, secret=ACCESS_SECRET)
    client = oauth.Client(consumer, access_token)

    timeline_endpoint = "https://api.twitter.com/1.1/users/search.json?q=" + search

    response, data = client.request(timeline_endpoint)

0 个答案:

没有答案