tweepy:invalid or expired token - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: tweepy:invalid or expired token (/thread-6614.html) |
tweepy:invalid or expired token - weareux - Nov-30-2017 Hello, thanks for your help, I want to find a twitter user thanks to tweepy, I have already tried to generate a new key, I've also tried with a token, but it says: Here is my code:#importer les modules import googlemaps import tweepy import urllib.request import json from tweepy import API #authentification twitter consumer_key="REMOVEDl" key=consumer_key consumer_secret="REMOVED" secret=consumer_secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(key, secret) api = tweepy.API(auth) user = api.get_user(screen_name = 'suspect_jean_michel') RE: tweepy:invalid or expired token - weareux - Dec-03-2017 up :) RE: tweepy:invalid or expired token - micseydel - Dec-03-2017 It's extremely difficult for a regular forum to help with issues like this. The API says your token is invalid or expired - if that's the case, it should be clear how to fix it, and if it's not, then you probably need to contact whoever maintains the API. |