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
24
votes
7 answers

Filter Twitter feeds only by language

I am using Tweepy API for extracting Twitter feeds. I want to extract all Twitter feeds of a specific language only. The language filter works only if track filter is provided. The following code returns 406 error: l = StdOutListener() auth =…
Sudo
  • 651
  • 2
  • 7
  • 18
18
votes
2 answers

Twitter Streaming API limits?

I understand the Twitter REST API has strict request limits (few hundred times per 15 minutes), and that the streaming API is sometimes better for retrieving live data. My question is, what exactly are the streaming API limits? Twitter references a…
17
votes
5 answers

Getting tweet replies to a particular tweet from a particular user

I am trying to go through tweets of a particular user and get all replies on that tweet. I found that the APIv1.1 of twitter does not directly support it. Is there a hack or a workaround on getting the replies for a particular tweet. I am using…
Huga
  • 571
  • 1
  • 8
  • 21
13
votes
4 answers

Using the Twitter streaming API, is it possible to only display tweets from a specific user?

I am currently using the Twitter API to retrieve tweets made by certain users. For the sake of this question, we will use @justinbieber as an example. When using the https://stream.twitter.com/1.1/statuses/filter.json resource, setting follow to the…
Simon
  • 189
  • 3
  • 11
12
votes
3 answers

Streaming Twitter direct messages

I am using the following code to stream direct messages received by my Twitter account -: from tweepy import Stream from tweepy import OAuthHandler from tweepy import API from tweepy.streaming import StreamListener # These values are…
Anmol Singh Jaggi
  • 8,376
  • 4
  • 36
  • 77
11
votes
2 answers

Twitter Streaming API - urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead

Running a python script using tweepy which streams (using the twitter streaming API) in a random sample of english tweets, for a minute and then alternates to searching (using the twitter searching API) for a minute and then returns. Issue I've…
Chris Cookman
  • 246
  • 2
  • 8
8
votes
2 answers

How to handle KeyboardInterrupt (Ctrl-c) nicely with pycurl?

I am writing a Python script using pycurl to consume Twitter's Sreaming API. Here's a short snippet that does exactly that (simply put your Twitter login/password to test it): import pycurl user = 'USER' password = 'PWD' def handleData(data): …
Wookai
  • 20,883
  • 16
  • 73
  • 86
7
votes
2 answers

Nodejs modules not working as expected in different devices

I am using twitter streaming api & johnny-five with some other modules http , express& socket.io with arduino uno My script is working fine in laptop. But my production will be on a tablet. I have two tablets and both are responding differently. On…
Skyyy
  • 1,539
  • 2
  • 23
  • 60
7
votes
2 answers

How to change keywords on twitter stream api using twitter4j?

I am using twitter4j to connect to Stream API. I understand that from this post, Change Twitter stream filter keywords without re-opening stream, there is no way to change keywords while the connection is open. I have to disconnect and change the…
ktlim
  • 249
  • 1
  • 6
  • 15
7
votes
1 answer

Avoid 420s with Streaming API?

I have a python script that hooks into the Twitter Streaming API using basic authentication and making use of the tweetstream module. Im gathering around 10 tweets a minute. I was getting intermittent disconnections, so currently logging how often…
jakc
  • 1,161
  • 3
  • 15
  • 42
6
votes
1 answer

Detect Tweet deletion with Twitter Streaming API

The Twitter Streaming API can be used to detect a phrase using the following query: http://stream.twitter.com/1/statuses/filter.json?track=phrase However, the same query doesn't seem to detect when the tweet is deleted. Is there a way to do that…
Aquaboltar
  • 251
  • 1
  • 4
  • 10
6
votes
3 answers

Sentiment Analysis get tweets match to the search query & do analysis

I want to perform sentiment analysis on twitter. I dont want to store any of the tweets but perform analysis on them such as tweets which says positive stuff about a particular hashtag etc. The problem I have here is that accessing the tweets is too…
6
votes
2 answers

tweepy stops after a few hours

I use tweepy for streaming some tweet. This is my procedure: import tweepy import json consumer_key = "***" consumer_secret = "***" access_token_key="***" access_token_secret="***" auth1 = tweepy.OAuthHandler(consumer_key,…
RoverDar
  • 441
  • 2
  • 12
  • 32
6
votes
4 answers

Using the cURL output

I'm planning to record the live tweets on a particular topic. For the same, I'm using the twitter stream API with cURL in PHP. Here is the code:
Gooner
  • 1,570
  • 17
  • 20
5
votes
1 answer

Facebook Fan Page vs. Twitter Streaming API

What is the counterpart of Twitter Streaming API for Facebook Fan Page? How can i get real time updates from a Facebook Fan Page?
Mesut
  • 916
  • 1
  • 7
  • 17
1
2 3
26 27