tweetstream

Rails gem tweetstream with Encryption not available on this event-machine error

别等时光非礼了梦想. 提交于 2020-01-24 10:49:55
问题 I'm trying to display tweets using gem tweetstream and following the guide at https://github.com/tweetstream/tweetstream In my tweets_helper.rb require "twitter" require 'tweetstream' module TweetsHelper @@client = Twitter::REST::Client.new do |config| config.consumer_key = Rails.application.config.twitter_key config.consumer_secret = Rails.application.config.twitter_secret config.access_token = Rails.application.config.twitter_oauth_token config.access_token_secret = Rails.application.config

how to take all tweets in a hashtag with tweepy?

本小妞迷上赌 提交于 2019-12-20 15:33:29
问题 I'm trying to take every open tweets in a hashtag but my code does not go further than 299 tweets. I also trying to take tweets from a specific time line like tweets only in May 2015 and July 2016. Are there any way to do it in the main process or should I write a little code for it? Here is my code: # if this is the first time, creates a new array which # will store max id of the tweets for each keyword if not os.path.isfile("max_ids.npy"): max_ids = np.empty(len(keywords)) # every value is

filtering of tweets received from statuses/filter (streaming API)

风流意气都作罢 提交于 2019-12-10 14:46:15
问题 I have N different keywords that i am tracking (for sake of simplicity, let N=3). So in GET statuses/filter, I will give 3 keywords in the "track" argument. Now the tweets that i will be receiving can be from ANY of the 3 keywords that i mentioned. The problem is that i want to resolve as to which tweet corresponds to which keyword. i.e. mapping between tweets and the keyword(s) (that are mentioned in the "track" argument). Apparently, there is no way to do this without doing any processing

how to take all tweets in a hashtag with tweepy?

那年仲夏 提交于 2019-12-03 05:10:47
I'm trying to take every open tweets in a hashtag but my code does not go further than 299 tweets. I also trying to take tweets from a specific time line like tweets only in May 2015 and July 2016. Are there any way to do it in the main process or should I write a little code for it? Here is my code: # if this is the first time, creates a new array which # will store max id of the tweets for each keyword if not os.path.isfile("max_ids.npy"): max_ids = np.empty(len(keywords)) # every value is initialized as -1 in order to start from the beginning the first time program run max_ids.fill(-1) else

Twitter Streaming API limits?

谁说我不能喝 提交于 2019-11-27 16:14:06
问题 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 percentage on their docs, but not a specific amount. Any insight is greatly appreciated. What I'm trying to do: Simple page for me to view the latest tweet (& date / time it was posted) from ~1000 twitter users. It seems I would rapidly hit the