Questions tagged [twitter-streaming-api]

The set of streaming APIs offered by Twitter give developers low latency access to Twitter's global stream of Tweet data.

392 questions
3
votes
1 answer

Tweepy Streaming API returning "None" for coordinates on geo-enabled tweets

I am using Tweepy to access the streaming API. I am able to get results with the code below but for tweets where the Geo Enabled value is "True" I am getting a Coordinates returned value of "False". How can this be? Do I need to decode the JSON…
user2442175
  • 31
  • 1
  • 3
3
votes
2 answers

Pull data from PHP object received from twitter streaming api

I'm using tmhOAuth library to parse twitter stream in php. It returned me variable $data with this object object sample for stackoverflow { "created_at":"Wed Jan 02 13:37:54 +0000 2013", "id":286466350610776064, …
Denis
  • 2,429
  • 5
  • 33
  • 61
3
votes
1 answer

Twitter4j TwitterStream Stop/Close

I have an Android app that starts a TwitterStream with Twitter4j and I am looking for help as to how to stop/close it if I do not need the stream anymore. I start the stream on a preference change but would need to stop it in other parts of my app…
Fenrir
  • 309
  • 1
  • 3
  • 10
3
votes
1 answer

Twitter streaming API - trying to get results based on location/bounding box

I am playing around with the Twitter Streaming API and have got my head around it at a basic level, but I can't seem to get reliable results for the location - I'm using a bounding box as specificed in the docs, the location I want to track is…
user1153594
  • 281
  • 2
  • 20
2
votes
2 answers

Copying twitter stream to objects: can I fall behind?

Currently I'm working on an app that reads the stream from Twitter API and parses it into objects. At the moment I read the stream and use ReadObject(...) from DataContractJsonSerializer to make my objects and I write them to a buffer in memory…
Jasper
  • 129
  • 1
  • 10
2
votes
1 answer

Streaming api number of terms limit

I am using twitter streaming api to track terms. I knot that there is a limit that each term should not be more than 60 characters in length. I want to know is there ant limit on the number of terms/keywords for a single stream ? Note: I am…
Pravin
  • 6,592
  • 4
  • 42
  • 51
2
votes
2 answers

foreachRDD to pull average number of words & characters for each RDD in J8 Spark Streaming of Twitter API

I'm trying to get the average number of words and characters in each RDD I pull from the Twitter API using spark in Java 8. However, I'm having trouble using streams to achieve this. My code is as follows: //Create the…
2
votes
1 answer

Tweepy returns same tweets when scraping data repeatedly

I am scraping data from Twitter for tweets, since Twitter has a limitation on this, I am scraping 2500 tweets data every 15 minutes, however, I observe that each run after 15 minutes is returning me the same tweets. Is there any way how I can skip…
2
votes
1 answer

I want to set the limit of maximum number of Tweets

I am very new to python. I'm using tweepy library to scrape tweets via twitter streaming API. but it seems like connection gets broken after running for an hour. I want to know if there is any way to stop the program from running before the…
target021
  • 73
  • 8
2
votes
1 answer

Avoid twitter stream from getting disconnected

I have a python script that streams tweets into a csv file. I have provided the runtime parameter of 46800 seconds which is equal to 13 hrs, this dictates for how long the tweets have to be streamed into that csv. It was running fine for the…
Nakul Sharma
  • 143
  • 2
  • 9
2
votes
1 answer

YAJL stream parsing and Twitter streaming API

Twitter streaming API returns blocks of JSON, but my YAJL parser stops after the first one. I guess this is because every block of JSON is independant (i.e: not in a global array), so YAJL has no way of knowing it's not done. How can I handle this ?…
Thomas Joulin
  • 6,590
  • 9
  • 53
  • 88
2
votes
1 answer

Play Framework ws libray stream method stops after 2 minutes on connection

I am using Play 2.6 and The twitter streaming API. Below is how I connect to twitter using the ws library's stream() method. The problem is that, the steam always stops after exactly 2 minutes. I tried different topics and the behavior is pretty…
Haijin
  • 2,561
  • 2
  • 17
  • 30
2
votes
0 answers

Avoid error 420s with streaming API tweepy

I made a python script which uses tweepy streaming module to stream mentions to a twitter account and carry some functions based on the status text. I wanted it to stream until a mention is made, next stop streaming, carry some functions based on…
Novice
  • 73
  • 5
2
votes
0 answers

Restart Laravel artisan command

I am making a functionality in my app that listen for tweets that contains some hashtags. I use this way of implementing the that functionality. I am also using a Laravel 5.4 on php 7.1. I made a back end where users can add, to a table in database,…
2
votes
0 answers

Twitter Streaming api Oauth - 401 Unauthorized error

I am trying to use Oauth with the Twitter Streaming API but I am getting a 401 Unauthorized error. Authorization header used - OAuth oauth_consumer_key=consumer key, oauth_nonce=nonce, oauth_signature=signature, oauth_signature_method="HMAC-SHA1",…
Joe
  • 31
  • 2