title: Application to access Twitter data and Retrieving trends
body: <p><strong>Input:</strong></p>
  
  <pre><code>CONSUMER_KEY =  '3zu*************BClmA'
  CONSUMER_SECRET = 'pQ************vgJmrysYYWGwSSwA0HzFvB'
  OAUTH_TOKEN = '2431620*****************Z9kOlXGWgj9U9hJNSZlAAP'
  OAUTH_TOKEN_SECRET = 'a**************9j7aJsXqLmOcsbm'
  auth = twitter.oauth.OAuth(OAUTH_TOKEN, OAUTH_TOKEN_SECRET,
                             CONSUMER_KEY, CONSUMER_SECRET)
  twitter_api = twitter.Twitter(auth=auth)
  #print twitter_api
  
  
  
  
  WORLD_WOE_ID = 1
  US_WOE_ID = 23424977
  
  
  world_trends = twitter_api.trends.place(_id=WORLD_WOE_ID)
  us_trends = twitter_api.trends.place(_id=US_WOE_ID)
  
  print world_trends
  print
  print us_trends
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>&lt;twitter.api.Twitter object at 0x7fae2a3fa750&gt;
     Traceback (most recent call last):
    File "tw1.py", line 22, in &lt;module&gt;
      world_trends = twitter_api.trends.place(_id=WORLD_WOE_ID)
    File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 239, in __call__
      return self._handle_response(req, uri, arg_data, _timeout)
    File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 270,in              handle_response
      raise TwitterHTTPError(e, uri, self.format, arg_data)
  twitter.api.TwitterHTTPError: Twitter sent status 401 for URL: 1.1/trend/place.json           using parameters: (id=1&amp;oauth_consumer_key=3zuNBJp5pSNsL2TQdBClmA&amp;oauth_nonce=2012443237312860371&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1396954063&amp;oauth_token=2431620524-S7HkBF47N49xLiqKlZ9kOlXGWgj9U9hJNSZlAAP&amp;oauth_version=1.0&amp;oauth_signature=7%2FSvFNAnLw9xToRMxr97d9eaPL4%3D)
  details: {"errors":[{"message":"Could not authenticate you","code":32}]}
  </code></pre>
  
  <p>Does anybody know why is this error happening?</p>