Muse::Dl::Fetch
Inherits Reference / Object
Constants
DOWNLOAD_TIMEOUT_SECS = 60
HEADERS = {"User-Agent" => USER_AGENT, "Accept" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Language" => "en-US,en;q=0.5", "Connection" => "keep-alive"}
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
Class methods
article_file_name(id : String, tmp_path : String)
Sourcechapter_file_name(id : String, tmp_path : String)
Sourcecleanup(tmp_path : String, id : String)
Sourcecleanup_articles(tmp_path : String, id : String)
Sourceget_info(url : String)
Sourcesave_article(tmp_path : String, article_id : String, cookie : String | Nil = nil, article_title = nil, strip_first_page = true)
Sourcesave_chapter(tmp_path : String, chapter_id : String, chapter_title : String, cookie : String | Nil = nil, add_bookmark = true, strip_first_page = true)
Sourcesave_url(url : String, referer : String, file_name : String, tmp_path : String, cookie : String | Nil = nil, bookmark_title : String | Nil = nil, strip_first_page = true)
Source