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

For anyone interested, this prompted an update to hubski.rb so it can be called with noshout as the last argument.

  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:

  "

shoutTag="@" unless ARGV[1].eql?("noshout")

  users.map(&:text).uniq.each do 
    user

print shoutTag, user, shoutTag, " "

end