json - Python Twitter stream API GET request -


    #twitter streaming api     import twitter     import json     ckey=''     csecret=''     atoken=''`     asecret=''      auth=twitter.oauth.oauth(atoken,asecret,ckey,csecret)     twitter_api=twitter.twitter(auth=auth)     q='india'     twitter_stream=twitter.twitterstream(auth=auth)     stream=twitter_stream.statuses.filter(track="windows10")     status in stream:         print status 

now getting error this. have try method , post method

generating key  traceback (most recent call last): file "<stdin>", line 1, in <module> file "build/bdist.linux-i686/egg/twitter/api.py", line 239, in __call__ file "build/bdist.linux-i686/egg/twitter/stream.py", line 107, in _handle_response file "build/bdist.linux-i686/egg/twitter/stream.py", line 98, in handle_stream_response twitter.api.twitterhttperror: twitter sent status 401 url:  1.1/statuses/filter.json using parameters: (oauth_consumer_key=btt1lyxan6sgmpbzwxlvewbna&oauth_nonce=309235266278540856&oauth_signature_method=hmac-sha1&oauth_timestamp=1433391800&oauth_token=323025517-fmkcvhut32bvcupmr4piomtkyivycjdoyrnopkya&oauth_version=1.0&track=windows10&oauth_signature=cdot6lfv8eztaulk7eyhvjzgb%2by%3d) details: <html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\n<title>error 401  unauthorized</title>      </head>     <body>     <h2>http error: 401</h2>     <p>problem accessing '/1.1/statuses/filter.json'. reason:     <pre>    unauthorized</pre>     </body>     </html> 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -