a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
Cedar  ·  3288 days ago  ·  link  ·    ·  parent  ·  post: Hubski Newsletter #050

Here it is, I call it with "ruby hubski.rb URL" where the URL is the Hubski list.

----

  require 'nokogiri'

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