Request data from Twitter API in json using Python
<p>I am trying to use the Twitter REST API to GET/POST data </p>

<p>Initially starting with GET.</p>

<pre><code>import requests

url = 'https://api.twitter.com/1.1/account/verify_credentials.json'
auth = OAuth1(API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
requests.get(url, auth=auth)

r = requests.get('https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=&lt;username&gt;&amp;count=10', auth=auth)
for tweet in r.json():
  print tweet['text']
</code></pre>

<p>Task is to get the tweets from JSON data through Twitter API without using twitter module. Can anyone please help with it. </p>