Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require "nokogiri"
require "open-uri"
url = "https://github.com/#{params['username']}"
document = Nokogiri::HTML(open(url))
{
:pop_repos => document.css('.js-pinned-items-reorder-list').to_html,
:calendar => document.css('.js-calendar-graph-svg').to_html
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment