-
Hi, I'm trying to collect trends using some code that used to work before the paid update to the Twitter API. I have v2 API access yet I can't get the following code to work: auth = tweepy.OAuthHandler(consumer_key, consumer_secret) It gives the following error: Yet when I look at the API v2 documentation on the Twitter Dev platform it says a trends feature is "COMING SOON", so is the get_trends_place() functionality obsolete currently, does the Basic v2 not cover this functionality, or am I doing something wrong? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For code block usage, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. |
Beta Was this translation helpful? Give feedback.
tweepy.API
is Tweepy's interface for Twitter API v1.1.Access to Twitter API v1.1 has been deprecated.
You're correct in that Twitter API v2 does not currently have any endpoints relating to trends.
For code block usage, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.