class MangaDownloadr::Pages
Public Instance Methods
fetch(chapter_link)
click to toggle source
# File lib/manga-downloadr/pages.rb, line 3 def fetch(chapter_link) get chapter_link do |html| nodes = html.xpath("//div[@id='selectpage']//select[@id='pageMenu']//option") nodes.map { |node| [chapter_link, node.children.to_s].join("/") } end end