Continuously retrieve Tweets that refer to the current time of day.
By Monkier Design and Technology at studiomoniker.com
Me too.
Continuously retrieve Tweets that refer to the current time of day.
By Monkier Design and Technology at studiomoniker.com
Me too.
Javascript client side method to search Tweets bypassing Oauth.
Uses Twitter Widgets – parsing the ‘JSON like response’ using Jquery.
By Jason Mayes
https://github.com/jasonmayes/Twitter-Post-Fetcher
Here is a sample URL that returns a response for the hashtag #cats using my widget: https://cdn.syndication.twimg.com/widgets/timelines/528661733678657536 If you set up a Twitter widget, just replace the ID number in the URL with the one that shows up when you run your widget.
Here is a derivative project by Alessio Zappa that doesn’t use Jquery: http://www.snip2code.com/Snippet/145533/Customize-twitterFetcher-JS-lib-for-our-
This method is not approved by Twitter. Use at your own risk: https://twittercommunity.com/t/can-i-use-cdn-syndication-twimg-com-widgets-timelines-for-my-website/20134
local version – tkzic/Twitter-Post-Fetcher-master/
Twitter search for Max/MSP.
Uses mxj and the twitter4j library
By Gokce Kinayoglu
http://cycling74.com/toolbox/searchtweet-design-patches-that-respond-to-twitter-posts/
Note: installation instructions in readme.txt file with download. Requires copying of java classes and library files.
“Conversnitch is a small device that automatically tweets overheard conversations, bridging the gap between (presumed) private physical space and public space online.”
By Brian House and Kyle McDonald
Note: 6/2021 – This project has not been updated for 7 years, but surveillance is alive and well.
https://github.com/brianhouse/Conversnitch
(Uses Raspberry Pi)
Access to the Twitter streaming API
This gem looks to be a possible solution for connecting Max to Google Maps. I’m guessing that the code will look very similar to the ruby code which uses the twitter gem for status updates.
https://github.com/tweetstream/tweetstream
Here’s a blog entry:
http://thechangelog.com/tweetstream-easily-access-the-twitter-streaming-api/
Client documentation:
http://rdoc.info/github/intridea/tweetstream/TweetStream/Client
Here’s the Twitter documentation on whats getting returned:
https://dev.twitter.com/docs/platform-objects/tweets
Send and receive Tweets using Max via OSC to a background ruby server.
An advantage of this method is that both the patch and the server are compact and easy to understand. The Max patch does things in a Max way. And likewise with the ruby scripts.
https://github.com/tkzic/internet-sensors
folder: twitter-ruby
The ruby script requires installation of the following gems
For example:
# sudo gem install twitter
In addition to having a Twitter account, you will need to set up a Twitter application from the developer site here:
Good instructions on how to do this can be found in this stackoverflow.com post under this heading: So you want to use the Twitter v1.1 API?
When you get to step 5 – in the instructions – instead of writing your own code, just use a text editor to copy your access tokens into these ruby programs:
Replace the strings in this line of code by copying and pasting the appropriate ones from your Twitter application:
twitterClient = Twitter::REST::Client.new do |config| config.consumer_key = "mqQtoYh16343tDFG3BK7QQ" config.consumer_secret = "X0KexjlK49fhhrnn9EztapZfATCQqWCc5fXVJH2pE" config.oauth_token = "205589709-5krgh9FR3KkLGRDnewiU7GKKBMA6i2La84c" config.oauth_token_secret = "LNARAeooN2vkklkF006GRdihQ5D8YYkm8dYvEs68M" end
(note: currently running with ruby version 2.0) Display your ruby version by typing: ruby –version
# ./twitter-server-send.rb
# ./twitter-server-get.rb
Both ruby servers can run at the same time.
revision history
Update 6/2014: working version here: https://reactivemusic.net/?p=7013
The zapier.com trigger method of sending tweets from Max is limited by number of tweets and sync rate. So it would be nice to set up another intermediary server program in ruby or php which eliminates the middle-man and just sends tweets directly.
Or you could use the mxj searchTweet program, which has been updated to do this on the search side.
update: Got it working with this gem: https://github.com/sferik/twitter. Its much easier than dealing with xively.
docs: http://rdoc.info/gems/twitter
how to destroy a tweet: http://stackoverflow.com/questions/10640811/twitter-gem-how-to-get-the-id-of-a-new-tweet
how to get a timeline: http://bobbyprabowo.wordpress.com/2010/01/01/simple-twitter-gem-tutorial/
example of error handling code:
MAX_ATTEMPTS = 3 num_attempts = 0 begin num_attempts += 1 retweets = Twitter.retweeted_by_user("sferik") rescue Twitter::Error::TooManyRequests => error if num_attempts <= MAX_ATTEMPTS # NOTE: Your process could go to sleep for up to 15 minutes but if you # retry any sooner, it will almost certainly fail with the same exception. sleep error.rate_limit.reset_in retry else raise end end
Another useful SO post: http://stackoverflow.com/questions/16618037/twitter-rate-limit-hit-while-requesting-friends-with-ruby-gem/16620639#16620639
Twitter 1.1 API
By Mike Pultz
http://mikepultz.com/2013/06/mining-twitter-api-v1-1-streams-from-php-with-oauth/
curl http://search.twitter.com/search.json?q=%23cats
“The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview”