Twitter Api Is Giving Error
I am writing this program to get data from twitter of hashtags but it give me the error import twitter import json import urllib twitter_search = twitter.Twitter(domain='search.twi
Solution 1:
You try to use API 1.0 endpoint, http://search.twitter.com/search.format. It returns status 410, gone:
When
API v1is finally retired, all authenticated and unauthenticated requests toAPI v1will return aHTTP 410 Gonestatus. Older widgets will receive the same response. This status code signifies that allAPI v1-era resources are gone and not coming back.
Correct url for 1.1 search is https://api.twitter.com/1.1/search/tweets.json
I don't know whether twitter module you're using is updated to use API 1.1, and suggest to use one of modules that is.
Post a Comment for "Twitter Api Is Giving Error"