Questions tagged [twitter-api-v2]

231 questions
1
vote
0 answers

Why am I not able to extract tweet and user fields using Twitter API v2 and Tweepy in Python 3.x?

I know the Twitter API has been changed and a lot of you guys are not using it anymore. Buuuuuut i have kind of a big problem, i started my master thesis in January and i am using the twitter api to extract some tweets. I changed some of my code and…
1
vote
1 answer

Unexpected 403 Error When Using Twitter API v2 - App Attached to a Project and Set to Production

I am currently experiencing a persistent issue with the Twitter API v2. Despite my app being a part of a project, being set to production, and having the $100 Elevated level of Basic access, I continue to receive a 403 error when I attempt to call…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
1
vote
1 answer

Client unauthorized error when trying to use Twitter API v2 in Postman

I am trying to use Twitter API version 2 in Postman, but I keep getting a "client unauthorized" error. I have followed the documentation and created a project(inside of which is my app) on the Twitter Developer portal, and I am using the correct API…
SHREY RAJ
  • 21
  • 1
1
vote
0 answers

How do I send a tweet using OAuth 2.0 Client ID and Client Secret?

I am interested in sending a tweet using Python. I was told that I need to use OAuth 2 to do that but I am not sure where to get started. I have changed my settings to 'read and write', and I got assigned Client ID and Secret ID credentials but I am…
dataman
  • 21
  • 2
1
vote
0 answers

Tweet on my behalf through API using twitter-api-sdk

I'm trying to use Twitter's official JavaScript/TypeScript SDK to post tweets on my behalf periodically. I've generated an access token and access token secret pair in their develop portal to do this. But their example code isn't clear how to…
at.
  • 50,922
  • 104
  • 292
  • 461
1
vote
1 answer

How do I use Twitter API v2 to retrieve Tweets longer than 280 characters?

Twitter recently allowed verified users to Tweet more than 280 characters, up to 4000. When I use the API to retrieve one of these longer Tweets I don't receive the full text - it's cut off around 280 characters. I don't see any notes about this in…
1
vote
1 answer

Unlisting lists inside data frame and put them in different columns in r

I used the Twitter API to get lots of tweets. What I did was to create a df with the data I want: preprocess <- function(df) { df_tw <- do.call(rbind,lapply(df, function (m) data.frame(text = df$text, lang = df$lang, …
MVAC
  • 118
  • 8
1
vote
0 answers

Struggling with creating an infinite stream in twitter-api-v2 (Node.js + Discord.js)

So, I have been attempting to create a bot much like "TweetShift" on a smaller scale for a single server, where the bot listens to a stream of tweets from a single user, with the rules: {"value": "from:"+process.env.TWITTER_USER_NAME+" -is:retweet…
cronch
  • 11
  • 1
1
vote
1 answer

Trouble posting a tweet with TwitterOAuth PHP

I installed twitteroauth via composer. I am trying to get a PHP script running that posts a test tweet. I have setup a developer account on Twitter as per instructions on the web and have been granted "Elevated" developer access but my script won't…
Digishack
  • 61
  • 3
1
vote
1 answer

Twitter api not returning 'created_at' info for tweets

When running the following code using the Python Tweepy library: query = '$MSFT' start_time = '2019-01-01T00:00:00Z' end_time = '2019-02-01T00:00:00Z' max_results = 10 results = client.search_all_tweets(query=query, max_results=max_results,…
1
vote
1 answer

User Mention Timeline Gives 0 Results With twitter-api-v2

Trying to use the user mention timeline via twitter-api-v2 and it always says there are no tweets mentioning the user, I've tested out many different user id's and they all give the same result. _realData: { meta: { result_count: 0 } } const…
1
vote
1 answer

Use API Twitter to send Tweet in Sandbox

I'm using API twitter to send Tweet on my profile and it works. I read the documentation but I don't find any method to send "test" tweet. I'd like to create some fake tweets to check if my code is working properly. At the moment I use…
foo_bar
  • 99
  • 2
  • 8
1
vote
2 answers

Tweepy API: unable to get queries to return user_fields

I've got a python flask app whose job is to work with the Twitter V2.0 API. I got to using the Tweepy API in my app because I was having difficulty cold coding the 3 legged auth flow. Anyway, since I got that working, I'm now running into…
1
vote
1 answer

How to get all followers from a specific user using twitter-api-v2

Hi i'm trying to get all users that follow a specific account on twitter, so I made this code using twitter-api-v2 const followers = await reader.v2.followers(userId) let next_token = followers.meta.next_token let flist = [] …
JayJay
  • 17
  • 6
1
vote
1 answer

Tweepy / Twitter API V2 can make tweets but get 401 when searching

I am on a developer account where for the last year I have been developing a bot. Originally I used v1.1 to make tweets and now with v2 I have updated my code to make tweets successfully. Now I am try to do searches using search_recent_tweets. The…
1 2
3
15 16