Questions tagged [twitter-api-v2]

231 questions
0
votes
1 answer

Pagination for Twitter API in Python

I am using the full archive search of the Twitter API to extract data on past events. I have downloaded the code sample and modified it a bit to also save my data to a file on my local drive, and this is all working well. But I do not know how to…
OnceUponATime
  • 450
  • 4
  • 12
0
votes
0 answers

How to share Image-Url to Facebook, twitter and Instagram in Next JS

I am implementing a Next js Dapp and in it HTML canvas is used to edit the image. I have a page where the User can upload their picture and edit it using canvas. Now using the image received, in the IPFS cid url, needs to be shared on social media…
0
votes
0 answers

Get tweets of a topic from the Twitter API ( Node.js)

I have been having a look at the TwitterAPIV2 package from npmjs and the Twitter documentation but I can't seem to find a method to fetch tweets from a topic, for example I would like to fetch the top 5 tweets from the topic daily. If anyone could…
0
votes
1 answer

Twitter API V2 Can't get only Author Replies in Tweet Thread

I'm using twitter-api-v2 to get tweet replies by id, and it working, but the query isn't. This is my code: const data = await client.v2.search("123456789", { "query": "from:username to:'username'", "expansions": ["author_id"] }); …
Sam Chahine
  • 530
  • 1
  • 17
  • 52
0
votes
1 answer

Twitter API: does one need an enterprise account to filter a query with profile_country?

According to the documentation about location filtering, there is an operator profile_country that can be used to filter a specific country. However these operators seem to be restricted to enterprise accounts only, right? If somebody could confirm…
Erwan
  • 1,385
  • 1
  • 12
  • 22
0
votes
1 answer

How to get the url images of twitter api and put in googlesheet?

my code works in appscript with the GET call with fetch, then fetch gives me an array with different data nested, my code destructuring the data to get what I need, and put in a new array, each array with the data of each tweet, then this new array…
0
votes
1 answer

How we can publish a twitter dataset?

We are going to collect records of roughly 80M from twitter but, we do not know if that is legal or illegal to publish it somewhere like Github. I saw that users, mostly publish the tweet IDs other than the whole tweet data (like text, username and…
Mahdi Amrollahi
  • 2,930
  • 5
  • 27
  • 37
0
votes
1 answer

How to send twitter follow request to specific person using tweepy python? [2022]

I wrote a code to send follow request to specific users and my logic also seems perfect. Even when I print response.data it shows me my followers' data in a dictionary. But I can't find a way to fetch those names altogether and compare with the…
0
votes
1 answer

Caching in NODEJS

I am trying to cache the results of the Twitter query as they have rate limiting and I cannot seem to figure it out. I am following this tutorial here. The Cache.js file looks like so (taken from tutorial): import NodeCache from 'node-cache'; class…
FBK
  • 52
  • 5
  • 20
0
votes
1 answer

Creating DataFrame with Pandas from Tweepy API V2 Output

Here I am trying to use tweepy.Paginator to search over 100+ tweets and then load them into pandas df for further analysis. I, however, keep getting the repeated wrong username in each row, instead of the username of the author of the tweet in my df…
0
votes
2 answers

Tweepy API v2 Authentication

How can I test the Tweepy authentication using API v2? My code below fails to post due to authentication however, is there any other way to test the authentication without invoking posting a Tweet (client.create_tweet) ? import tweepy bearer_token…
Andre
  • 598
  • 1
  • 7
  • 18
0
votes
0 answers

How to determine when a tweet stops being promoted?

How can you determine when a tweet stops being promoted? Twitter ads API will return a history of promoted tweets with /:/promoted_tweets However, as far as I can tell, none of the fields from this endpoint tell us the status…
ProGirlXOXO
  • 2,170
  • 6
  • 25
  • 47
0
votes
0 answers

How to increase twitter api rate limit for user lookup endpoint

Pls let me know if there is any service which can increase rate limit for user lookup endpoint.
0
votes
0 answers

Unable to Convert Data ( JPG Encoding ) to an Image

Hello Stackoverfllow, The context, > nodejs: v16.17.0 > NPM: 8.15.0 > OS: Ubuntu 20.04.5 LTS > Axiom:0.27.2 I Developing an Application using Twitter API. I use Account Activity API to get a webhook event from it. Then I will have a media…
Akkilah
  • 1
  • 3
0
votes
0 answers

Can't tweet on twitter by using supabase user access token

I am using supabase/auth-helpers with sveltekit and using Twitter OAuth, and the sign up and login are working just fine. I am using the twitter-api-v2 package, and it states that I can use access token as bearer token like so: const client = new…
eflat
  • 79
  • 4