Skip to content Skip to sidebar Skip to footer

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 v1 is finally retired, all authenticated and unauthenticated requests to API v1 will return a HTTP 410 Gone status. Older widgets will receive the same response. This status code signifies that all API 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"