Sha256: f0696bbe9251a57ac7ca1822b9b13127a7ef6ad642a2d3a0ec7ee9ebc4282340
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require 'capybara' require 'capybara/poltergeist' require 'nokogiri' require 'ar_book_finder/constants' require 'ar_book_finder/user_type_processor' require 'ar_book_finder/pagination_processor' require 'ar_book_finder/quick_search_processor' require 'ar_book_finder/collection_processor' require 'ar_book_finder/book_detail_processor' require 'ar_book_finder/search_results_parser' require 'ar_book_finder/book_detail_parser' require 'ar_book_finder/configuration' require 'ar_book_finder/scraper' require 'ar_book_finder/book' require 'ar_book_finder/publisher' require 'ar_book_finder/version' Capybara.current_driver = :poltergeist Capybara.javascript_driver = :poltergeist module ARBookFinder extend Configuration def self.scraper(user_type) Scraper.new(user_type) end def self.search(query, page = 1) scraper(options[:user_type]).search(query, page) end def self.advanced_search(user_type, search_type, params) raise 'Not yet implemented' end def self.collection(collection, page = 1) scraper(options[:user_type]).collection(collection, page) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar_book_finder-1.1.1 | lib/ar_book_finder.rb |
ar_book_finder-1.1.0 | lib/ar_book_finder.rb |