Class: Scraper
- Inherits:
-
Object
- Object
- Scraper
- Defined in:
- lib/scraper.rb
Constant Summary collapse
- ATOM_PATH =
"https://github.com/nwinkler/atom-keyboard-shortcuts"
Instance Method Summary collapse
Instance Method Details
#scrape_atom ⇒ Object
5 6 7 8 9 |
# File 'lib/scraper.rb', line 5 def scrape_atom atom_doc = Nokogiri::HTML(open(ATOM_PATH)) shortcut_string = atom_doc.css("html body div div #js-repo-pjax-container div div #readme div article.markdown-body.entry-content table tbody").text DataFormatter.new.create_data_array_from_scraper(shortcut_string) end |