Project

tweetable

0.0
No commit activity in last 3 years
No release in over 3 years
Track twitter messages and users in memory using Redis
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 2.1.0

Runtime

= 0.9.12
 Project Readme

DESCRIPTION:¶ ↑

EXAMPLES:¶ ↑

To create a new Tweetable user:

@user = Tweetable::User.create(:screen_name => ‘flippyhead’) To then grab recent messages, friend counts, and other profile data:

@user.update_all # will only grab messages since the last known message Now you have access to stuff like:

@user.friend_ids # [34102, 23423, 67567, etc…] @user.friend_ids.size # 102 @user.profile_image_url # twitter.com/… @user.messages.size # 202 Links in messages can be extracted and expanded:

@message = @user.messages.first @message.parse_links

@link = @message.links.first # Tweetable::Link @link.url # tinyurl.com/yfuhltt @link.long_url # pathable.com And are connected to other users who mention them: @message.links.size # 2 @link.count # 8 (uses discovered so far) @link.users # [<Tweetable::User:0x1 @_attributes={}>, …] Performing a keyword search is just as easy:

# @search =