Questions tagged [sttwitterapi]

60 questions
13
votes
2 answers

Wordcloud is cropping text

I am using twitter API to generate sentiments. I am trying to generate a word-cloud based on tweets. Here is my code to generate a wordcloud wordcloud(clean.tweets, random.order=F,max.words=80, col=rainbow(50), scale=c(3.5,1)) Result for this: I…
Harsh Shah
  • 2,162
  • 2
  • 19
  • 39
8
votes
2 answers

Using Tweepy to Access Twitter's Premium API

I want to access Twitter's archive without being restricted by rate limits or number of queries. I don't mind paying for this, so my plan was to sign up for the premium package on Twitter's API platform. As I'm familiar with Tweepy, I had hoped to…
Lodore66
  • 1,125
  • 4
  • 16
  • 34
5
votes
1 answer

Twitter API in python GDPR update

A few days ago twitter updated some aspects of their API because of the GDPR changes. Starting today some of my applications have been breaking in a very odd way which I didn't expect would be affected by the GDPR changes. Maybe it has nothing to…
hackartist
  • 5,172
  • 4
  • 33
  • 48
2
votes
0 answers

Twitter API: when and how long is media_id safe to use after media upload?

In order to save bandwidth, I try to reuse the media_id that the twitter API returns for multiple tweets, preferably indefinitely. This works, after an upload I can use the same id multiple times, but as soon as when I for example delete a tweet…
jberculo
  • 1,084
  • 9
  • 27
2
votes
2 answers

How to get only new followers using tweepy?

I need to only get the followers I have not fetched before. Currently I can only get the top 200 items or given count but I don't want to get the same data more than once.
Anjayluh
  • 1,647
  • 1
  • 13
  • 22
2
votes
1 answer

Twitter API - Efficient way to get followers lists for accounts with few million followers

My challenge is to fetch all the list of followers of an account with over 30 million followers. Currently i'm using the GET followers/list endpoint on Twitter's REST API, however, with the rate limiting of the free API this takes lots of days to…
Elad Ratson
  • 706
  • 1
  • 7
  • 23
2
votes
1 answer

How to search a sentence in tweets

I am trying to gather dataset from Twitter accounts who posted a status update in the form of a statement of diagnosis, such as “I was diagnosed with X today”, where X would represent either depression. I was being able to use TwitterSearch library…
Shideh Hm
  • 69
  • 1
  • 5
2
votes
0 answers

Twitter Streaming API response 429 ("too many requests"). How can I cash data?

I'm trying to get all tweets depends on location. I use Twitter Streaming API https://api.twitter.com/1.1/geo/reverse_geocode.json. func mapView(mapView: MKMapView, regionDidChangeAnimated animated:…
Svitlana
  • 2,938
  • 1
  • 29
  • 38
1
vote
1 answer

Getting tweets of a specific user with public metrics

I've been trying to get a specific users last tweets and the public metrics of it. In playgrounds i can easily get it but when i use tweepy i can't get public metrics. import tweepy auth = tweepy.OAuth2BearerHandler("token") api =…
yesildaladam
  • 81
  • 1
  • 6
1
vote
1 answer

Getting Authorized User Details Using Twitter API using PHP Laravel

I could able to generate authorization URL and could able to trigger my callback API. But how can I get the authorized user details such as first name, last name, id, profile pic etc? I didnt find any solution on internet and I almost spent a lot of…
Sandeep Sudhakaran
  • 1,072
  • 2
  • 9
  • 22
1
vote
1 answer

Get geo/reverse_geocode Twitter API not working

I couldn't use GET geo/reverse_geocode api. I am getting following error { "errors": [{ "message": "Your credentials do not allow access to this resource", "code": 220 }] } I am using bearer token authorisation. Remaining…
Sai Durga Mahesh
  • 205
  • 2
  • 13
1
vote
1 answer

how to get list of users who like my tweet and list of users who quoted retweet my tweet?

Hello i want to get the list of users who likes my tweet and also the list of users who quoted retweet my tweets and also what to reply the user who reply to my tweets. Is there any apis for all of this in twitter docs? please help
1
vote
1 answer

Getting Retweet and favorite count from Tweepy stream

I've been using Tweepy to listen to a Twitter stream. For some reason, all the posts have 0 favorite_count & retweet_count. Do I have to go after some time and request an update for Tweet IDs? I would expect to get any update from the stream object.…
Nir
  • 2,497
  • 9
  • 42
  • 71
1
vote
1 answer

Twitter API Stream

I'm using Twitter's API streaming with tweepy to track Tweets containing a list of terms. One of the terms I want to track is "BE", which is an acronym of a Portuguese party. The problem is that the listener is given positive signals to all Tweets…
Miguel
  • 2,738
  • 3
  • 35
  • 51
1
vote
1 answer

Delete cookie from user browser after the session ends. Im using Passport-twitter to authenticate the user.

Hello i am building an app that is using passport-twitter to authenticate the user, im able to succesfully login the user using twitter credentials, but i would like for the user when we sign out (destroy the session), so the cookie is also destroy,…
1
2 3 4