Skip to content

Instantly share code, notes, and snippets.

@jcouyang
Last active April 1, 2019 10:30
Show Gist options
  • Save jcouyang/aec5210828043d5505bd to your computer and use it in GitHub Desktop.
Save jcouyang/aec5210828043d5505bd to your computer and use it in GitHub Desktop.
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