Sha256: 4fac9366af0e6cb0ee5f0a32ce81c3114efe1cb33daf44dd466c33c78d7bc4a6
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module Webstalker class Ohloh < Webstalker::Base def tags url = "http://www.ohloh.net/accounts/#{username}" doc = Nokogiri::HTML(open(url)) r=Set.new doc.css("#page a.position").each do |link| r<< link["href"].match(/\/p\/([^\/]+)/)[1].downcase end doc.css("#page th.lang.small a").each do |link| r<< link.text.strip.downcase end r << "developer" r end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webstalker-0.1.0 | lib/webstalker/ohloh.rb |