I am trying to retrieve 100 recent tweets of a user. It is working well with tweepy module in Python. But how can I do the same with requests in python. I want to do:
import requests
r = requests.get('https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=xxxx&count=100')
Here how to do the authentication with client key, client secret, access token and access secret, before sending this request?
You can use requests-oauthlib as described in requests docs.
OAuth:
Get tweets: