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
5
votes
0 answers

Twitter streaming API: track for exact phrase

I want to listen to streaming API and track for exact phrases, this post from 2010 say NO, you can't track an exact phrase, but I ask again in case anybody has fresher news. Is it possible yet?
K. Weber
  • 2,643
  • 5
  • 45
  • 77
5
votes
1 answer

Passing Longitude and Latitude in Twitter Streaming API of Pakistan

I am having problem in passing longitude and latitude format of Pakistan in Twitter Streaming API. This API provides some sample examples of passing longitude and latitude of some cities. The location for San Fransisco in the API location example is…
5
votes
1 answer

Twitter Streaming API with Tweepy rejects oauth

I'm trying to access the Twitter stream which I had working previously while improperly using Tweepy. Now that I understand how Tweepy is intended to be used I wrote the following Stream.py module. When I run it, I get error code 401 which tells me…
codenoodle
  • 982
  • 6
  • 19
5
votes
2 answers

The Requests streaming example does not work in my environment

I've been trying to consume the Twitter Streaming API using Python Requests. There's a simple example in the documentation: import requests import json r = requests.post('https://stream.twitter.com/1/statuses/filter.json', data={'track':…
Gareth
  • 1,430
  • 11
  • 15
4
votes
2 answers

Python produce to different Kafka partition

I am trying to learn Kafka by taking the classic Twitter streaming example. I am trying to use my producer to stream twitter data based on 2 filters to different partition of same topic. For example, twitter data with tracks='Google' to one…
Nidutt
  • 185
  • 2
  • 17
4
votes
1 answer

Twitter API v2 Streaming with Retrofit or OkHttp

I am trying integrate the new Twitter API specifically the streaming tweets part in my android app, I am using Retrofit for my http calls. When I try to make the call to get the streaming tweets it just hangs and does not return anything. this is my…
tyczj
  • 71,600
  • 54
  • 194
  • 296
4
votes
1 answer

What's wrong with my Twitter stream bounding boxes?

Given this url, I should see tweets around London, right? http://stream.twitter.com/1/statuses/filter.json?locations=51.23,-0.28,51.68,0.25 But nothing happens :( I tried different areas but I couldn't get nothing at all, although I'm trying areas…
Clément
  • 1,399
  • 13
  • 19
4
votes
2 answers

How can I have a continuous firebase cloud function for a continuous stream of data?

I need to use the Twitter Stream API to stream tweet data to my firebase cloud function like this: client.stream('statuses/filter', params, stream => { stream.on('data', tweet => { console.log(tweet); }) stream.on('error', error => { …
4
votes
0 answers

R / Twitter Live Streaming: Error: The stream disconnected prematurely

I would need to keep collecting tweets to live stream data and show insights in Power BI. I have the following R code to stream tweets continuously. It tries to scrap tweets every 10 seconds. After first 10-14 times, it throws an error: The stream…
Hackerds
  • 1,195
  • 2
  • 16
  • 34
4
votes
1 answer

Multistage build image not working, while normal build does

I have a Dockerfile that builds a golang project (that listens to the Twitter stream and lists the tweets by some filter) from the latest golang docker image, right now 1.10.3, like so: FROM golang:1.10.3 COPY . /destination/ WORKDIR…
brance
  • 1,157
  • 9
  • 22
4
votes
1 answer

How to download different sizes of an image from Twitter?

I'm using the Twitter Streaming API to get images included in tweets, and show them in my Android app. The media object which represents the image contains a media_url field that is a direct link to the image, and a JSON objects named sizes which…
DevOlly
  • 91
  • 1
  • 5
4
votes
1 answer

Filter tweets using "filter_level" in Twitter streaming API

I am using statuses/filter and am trying to filter the tweets from the twitter stream based on the parameter "filter_level". query = ["Donald Trump","Cristiano Ronaldo"] numberOfTweets = 1000 dictOfTweets ={} twitter_api =…
anon
  • 367
  • 1
  • 4
  • 18
4
votes
1 answer

How to track the keywords from a Twitter Stream

Is it possible to find a way to track which keywords triggers which tweets? For example (I'm using Python/tweepy): track_items= "obama,bernie sanders,hilary" stream = tweepy.Stream(auth, listener) stream.filter(track=[track_items]) How do I…
cynical biscuit
  • 323
  • 1
  • 5
  • 17
4
votes
1 answer

How to get location based tweets using Spring social with Twitter Streaming API?

I need to live feed the tweets based on geolocation. By Twitter API documentation I understand we can search based on geolocaion. But is it possible to stream based on geolocaion? and i use spring social twitter for API integration. …
4
votes
1 answer

Getting Exception java.util.NoSuchElementException: key not found: 'text' in spark-cassandra-connector

I want to save data from spark RDDs to cassandra table. I am using spark-cassandra-connector for java from https://github.com/datastax/spark-cassandra-connector Code to save as per docs rddJavaFunctions.writerBuilder("populartweets",…
1
2
3
26 27