Good ideas and conversation. No ads, no tracking. Login or Take a Tour!
Here it is, I call it with "ruby hubski.rb URL" where the URL is the Hubski list. ---- require 'open-uri' hubski = Nokogiri::HTML(open(ARGV[0])) users = hubski.css("#username") puts " [View as a list](#{ARGV[0]}) [Sign up here](http://hubskinewsletter.com) Thanks @insomniasexx@! Shout-outs: " users.map(&:text).uniq.each do |user| print "@#{user}@ " end require 'nokogiri'
–
It's a nice language, coming primarily from Java I really appreciate the brevity of it. Ruby (and Rails especially) has the tendency to do a lot of stuff auto-magically which is a blessing and a curse. I painstakingly typed that script up on my Raspberry Pi over SSH from my mobile :D
–