Class: NikkeiScraper
- Inherits:
-
StockIndex::BaseScraper
- Object
- StockIndex::BaseScraper
- NikkeiScraper
- Defined in:
- lib/stock_index/scrapers/nikkei_scraper.rb
Instance Method Summary collapse
Methods inherited from StockIndex::BaseScraper
#build_wikipedia_link, #td, #wikipedia_position
Instance Method Details
#scrape ⇒ Object
3 4 5 6 7 |
# File 'lib/stock_index/scrapers/nikkei_scraper.rb', line 3 def scrape doc = Nokogiri::HTML(open(StockIndex::INDICES['^N225'][:url])) @wikipedia_hash = parse_wikipedia_page(Nokogiri::HTML(open(StockIndex::INDICES['^N225'][:wikipedia_url]))) parse_rows doc.css('div.row.component-list') end |