Class: Sekitori::Generators::JuryoListGenerator

Inherits:
ListGenerator show all
Defined in:
lib/sekitori/generators/juryo_list_generator.rb

Constant Summary collapse

BANZUKE =
'前頭(十両)'.freeze
URL =
'https://ja.wikipedia.org/wiki/大相撲力士一覧'.freeze
TARGET_XPATH_LIST =
[
  '//h2[contains(span/text(), "十両(十枚目)")]/following-sibling::div/ul/li/a'
].freeze
IGNORE_XPATH_LIST =
[
  '//h2[contains(span/text(), "幕下以下")]/following-sibling::div/ul/li/a'
].freeze

Constants inherited from ListGenerator

ListGenerator::CACHE_DIR

Method Summary

Methods inherited from ListGenerator

clean, #execute, get, get_from_file, get_from_http, #list, parse, #to_h