Skip to content

Instantly share code, notes, and snippets.

@jcouyang
Last active April 1, 2019 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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