Melbourne International Film Festival (scraped and remixed into a datamapper/haml/sinatra app)
http://www.melbournefilmfestival.com.au | V http://github.com/yertto/miff | V
It'd be interesting to see what else could be done with the MIFF data.
So this challenge is out there, but you'd better get to it as MIFF is running from Thu 22nd July - Sat 7th July, 2010
git clone http://github.com/yertto/miff.git
cd miff
install required gems using bundle:
bundle install --without production
./miff_fetcher.rb
start your sinatra app:
./server.rb
install heroku:
sudo gem install heroku
heroku keys:add
:
Enter your Heroku credentials.
Email: joe@example.com
Password:
Uploading ssh public key /Users/joe/.ssh/id_rsa.pub
create your own app:
heroku create miff-joe
git push heroku master
push data to it:
heroku db:push sqlite://devel.db
add a link to your app on the wiki
- First miff_fetcher.rb scrapes the data using nokogiri and stores it using datamapper.
- Then server.rb serves the data using sinatra, which renders it using haml templates which it (mostly) generates at startup. (NB. this means the entire website can be generated from very few lines of code)