Class: WonderScrape::Scrapers::MFC::Scraper
- Inherits:
-
Object
- Object
- WonderScrape::Scrapers::MFC::Scraper
- Defined in:
- lib/wonder_scrape/scrapers/mfc/scraper.rb
Constant Summary collapse
- NAME =
'MFC'
- FIELDS =
ItemParser::VALID_FIELD_NAMES
- BASE_URL =
'myfigurecollection.net'
- SEARCH_PATH =
'/browse.v4.php'
- SEARCH_RESULT_ITEM_SELECTOR =
'ul.listing div.item-icons span.item-icon > a.tbx-tooltip'
- RESULTS_PER_PAGE =
81
- DEFAULT_DELAY_BETWEEN_REQUESTS =
seconds
2
- DEFAULT_MAX_PAGES =
2
- DEFAULT_START_PAGE =
1
- DEFAULT_SEARCH_CATEGORY =
Garage kits
4
Instance Method Summary collapse
-
#initialize(writer, recorder, options = {}) ⇒ Scraper
constructor
A new instance of Scraper.
- #scrape ⇒ Object
Constructor Details
#initialize(writer, recorder, options = {}) ⇒ Scraper
Returns a new instance of Scraper.
22 23 24 25 26 |
# File 'lib/wonder_scrape/scrapers/mfc/scraper.rb', line 22 def initialize(writer, recorder, = {}) @writer = writer @recorder = recorder @options = end |
Instance Method Details
#scrape ⇒ Object
28 29 30 |
# File 'lib/wonder_scrape/scrapers/mfc/scraper.rb', line 28 def scrape scraper.scrape(&ItemParser.parse(writer, recorder)) end |