public
Description: Semantic-web enabled Lifestreamer built on RubyOnRails
Homepage: http://dominiek.com/
Clone URL: git://github.com/dominiek/kakuteru.git
kakuteru / vote.rb
100644 12 lines (8 sloc) 0.299 kb
1
2
3
4
5
6
7
8
9
10
11
12
require 'mechanize'
 
def vote
  agent = WWW::Mechanize.new
  user_agents = ['Windows IE 6', 'Windows IE 7', 'Windows Mozilla', 'Mac Safari', 'Mac FireFox', 'Mac Mozilla']
  random_user_agent = user_agents[(rand * user_agents.size).floor]
  agent.user_agent_alias = random_user_agent
  page =
 
end