का उपयोग कर ट्विटर डेटा पुनर्प्राप्त करते समय त्रुटि, मैं नीचे दिए गए कोड का उपयोग करके ट्वीपी का उपयोग करके ट्विटर डेटा पुनर्प्राप्त करने का प्रयास कर रहा हूं, लेकिन मैं 401 त्रुटि लौटा रहा हूं, और मैं एक्सेस और गुप्त टोकन को पुन: उत्पन्न करता हूं, और वही त्रुटि दिखाई देती है।401 Tweepy
#imports
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
#setting up the keys
consumer_key = 'xxxxxxx'
consumer_secret = 'xxxxxxxx'
access_token = 'xxxxxxxxxx'
access_secret = 'xxxxxxxxxxxxx'
class TweetListener(StreamListener):
# A listener handles tweets are the received from the stream.
#This is a basic listener that just prints received tweets to standard output
def on_data(self, data):
print (data)
return True
def on_error(self, status):
print (status)
#printing all the tweets to the standard output
auth = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
stream = Stream(auth, TweetListener())
t = u"#سوريا"
stream.filter(track=[t])
क्या आपने ऐप को अपने ट्विटर खाते में अधिकृत किया था? [सहायता लिंक] [1] [1]: http://stackoverflow.com/questions/19095257/using-twython-to-send-a-tweet-twitter-api-error/1 9 1 9 6583 # 1 9 1 9 6583 –
असुरक्षित रूप से, मुझे अभी भी एक ही त्रुटि है। – user3643380
मैंने ट्विटर क्षेत्र के साथ साइन इन करने का भी प्रयास किया, लेकिन इसका उपयोग नहीं किया। कोई मदद !!! – user3643380