rubygems - Downloading Tweets into Ruby on Rails database -


i'm trying build app in ruby on rails stores specified tweets in database.

i think i'm going use twitter gem, i'm not sure how go displaying tweets storing them.

any or resource links appreciated!

and database best suited application?

when iterating results, can store them in model objects, in turn map tables in sql databases (mysql, postgres, oracle), or documents in nosql dbs mongodb.

tweaking example in twitter gem's readme:

# find , store 3 recent marriage proposals @justinbieber twitter::search.new.containing("marry me").to("justinbieber").result_type("recent").per_page(3).each |r|   mylocaltweetmodel.create!(:from_user => r.from_user, :text => #{r.text}") end 

this can done database, really.

the decision on database use depends on many other factors, such app hosted, traffic expect, how plan scale it... , taste 1 of these factors, , not unimportant one. hate active record migrations, instance, though many other niceties. active record default orm rails uses sql databases.

if you're new this, start on simple sqlite database active record. there's more of learning-curve alternatives.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -