Class: BookmeterExporter::Crawler
- Inherits:
-
Object
- Object
- BookmeterExporter::Crawler
- Defined in:
- lib/bookmeter_exporter/crawler.rb
Instance Method Summary collapse
- #crawl ⇒ Object
-
#initialize(email, password) ⇒ Crawler
constructor
A new instance of Crawler.
Constructor Details
#initialize(email, password) ⇒ Crawler
Returns a new instance of Crawler.
11 12 13 14 15 16 |
# File 'lib/bookmeter_exporter/crawler.rb', line 11 def initialize(email, password) @email = email @password = password @root_url = URI("https://bookmeter.com/") @user_id = nil end |
Instance Method Details
#crawl ⇒ Object
18 19 20 21 22 23 |
# File 'lib/bookmeter_exporter/crawler.rb', line 18 def crawl start_webdriver login book_urls = collect_book_urls fetch_books(book_urls) end |