Class: UtahCountyAaMeetingFinder::Scraper
- Inherits:
-
Object
- Object
- UtahCountyAaMeetingFinder::Scraper
- Defined in:
- lib/utah_county_aa_meeting_finder/scraper.rb
Instance Method Summary collapse
Instance Method Details
#make_meetings(url) ⇒ Object
9 10 11 12 13 |
# File 'lib/utah_county_aa_meeting_finder/scraper.rb', line 9 def make_meetings(url) self.scrape_index_page(url).each do |meeting| UtahCountyAaMeetingFinder::Meetings.new_meetings(meeting) end end |
#scrape_index_page(index_url) ⇒ Object
3 4 5 6 7 |
# File 'lib/utah_county_aa_meeting_finder/scraper.rb', line 3 def scrape_index_page(index_url) doc = Nokogiri::HTML(open(index_url)) meetings = doc.css("body tr tr") end |