Skip to content

tutorial.ipynb: SSLHandshakeError on the GET followers/list Part  #1

@amjia77

Description

@amjia77

Please help! I got this error (please see attached) message after I ran the cell:

import json
FOLLOWERS_URL = 'https://api.twitter.com/1.1/followers/list.json'

TODO: put your twitter handle here

screen_name = '[A TWITTER Handle]'

url = FOLLOWERS_URL + '?screen_name=' + screen_name
header, response = client.request(url, method='GET')

let's save the whole response so you can take a look at it

with open('../materials/tutorial/my_followers.json', 'w') as f:
json.dump(json.loads(response), f, indent=2)

print 'status:', header['status'] # should be 200 (STATUS_OKAY)
print response[:200] # a lot of data!

capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions