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
4
votes
2 answers

IOExcpetion while connecting to Twitter Streaming API with Apache Flink

I wrote a small Scala program which uses the Apache Flink Streaming API to read Twitter tweets. object TwitterWordCount { private val properties = "/home/twitter-login.properties" def main(args: Array[String]) { val env =…
peterschrott
  • 570
  • 5
  • 25
4
votes
1 answer

node.js and socket.io uncaught error

i am trying to use ntwitter ,node.js and socket.io for accessing twitter user stream.the twitter user stream works fine and i can get the tweets in real time.the tweets get displayed in the console using the following…
tweeper
  • 352
  • 1
  • 4
  • 16
4
votes
2 answers

Twitter Rate Limiting IP/OAuth Concerns

I have a series of webapps that collects all terms relating to a subject using the Public Streaming API. So far, I've been taking a very, very arduous route of creating a new account for each stream, setting up a new Twitter application on that…
Peter Kazazes
  • 3,600
  • 7
  • 31
  • 60
3
votes
2 answers

Twitter Stream Filter By Location

Is it possible for Twitter Stream API to filter tweets by the location field? As you can see in the sample JSON entry below that there is "location":"philippines" field - value. Now, what I wanted is to just filter tweets coming from that location…
neilmarion
  • 2,372
  • 7
  • 21
  • 36
3
votes
0 answers

Twitter streaming API not getting all retweets

I'm using the streaming API to follow a specific user id, and I'm able to stream without any issues. However, when I compare all streamed tweets collected in one day to the ones collected with the rest API it seems that the stream API missed some…
3
votes
1 answer

How do I return mock data from requests to the Twitter Streaming API in Node

I have a Node application that connects to the Twitter REST and streaming APIs. In order to test code that makes requests to the REST API, I can use Nock to intercept the HTTP request and return mock data like so: var nock = require('nock') var…
3
votes
0 answers

Tweepy Streaming Direct Messages

I've been using Tweepy with Python 2.7 to stream tweets and everything has been working fine, except the on_direct_message() method isn't being called when I send the account a direct message. I've updated my permissions and even tried using the…
Jack Irish
  • 31
  • 2
3
votes
0 answers

TwitterStream with Spark streaming returnin Unsupported major.minor version 52.0

So today I'm trying to execute my first spark streaming script using Java. For now all I'm trying to do is to get a stream of tweets using the spark streaming Twitter API and to filter it. After exporting my program to a jar file(simplestream.jar) I…
Joe
  • 31
  • 2
3
votes
1 answer

How to keep streaming continuously - Tweetinvi

I adapted the following code from one I found online. Works ok but is not running continuously and pulling in new tweets. What do I need to change? Help appreciated. private static void Stream_FilteredStreamExample() { SqlConnection conn = new…
Ibexy I
  • 1,123
  • 6
  • 16
  • 29
3
votes
1 answer

Getting original tweet-id and user-id from retweet-id

I am using Twitter4j to access the streaming API. I am using follow, to get a stream related to a set of users. My problem basically boils down to this: Given a retweet (I have the retweet-id and the user-id of the retweet) in the stream, how can I…
harishankarv
  • 328
  • 2
  • 14
3
votes
1 answer

Limit tweepy stream to a specific number

class listener(StreamListener): def on_status(self, status): try: userid = status.user.id_str geo = str(status.coordinates) if geo != "None": print(userid + ',' + geo) else: print("No…
Leb
  • 15,483
  • 10
  • 56
  • 75
3
votes
1 answer

Update keyword list for streaming API on-the-fly using HBC

I'm working on a project accessing Twitter's Streaming API with HBC. I'm storing keywords for Twitters Streaming API (filter) in a file and now I'm looking for a way to close and reconnect to Twitter each time the file changes. I googled with no…
theShadow89
  • 1,307
  • 20
  • 44
3
votes
2 answers

How do I interupt an (infinite) stream?

I'm working with the ExTwitter library and would like to be able to occasionally kill a call to the streaming API to change parameters. My current code looks something like this: for tweet <- ExTwitter.stream_filter(track: terms) do …
Tim McNamara
  • 18,019
  • 4
  • 52
  • 83
3
votes
1 answer

Twitter Streaming API and Authentication

I'm building an app that lets uses the Twitter Streaming API to allow users to view a live stream of tweets in their geographical area. I have an Access token obtained from dev.twitter.com, but this part of the Streaming API documentation is…
3
votes
0 answers

Celery and Twitter streaming api with Django

I'm having a really hard time conceptualising how I can connect to the the twitter streaming api and process tweets via an admin interface provided by Django. The main problem is starting a daemon from Django and having the ability to stop/start it,…
rix
  • 10,104
  • 14
  • 65
  • 92
1 2
3
26 27