class

Config

Inherits Reference < Object

Constants

CP_VALUE_OPTIONS = ["--cp-data-key", "--cp-pagination-key", "--cp-page-key", "--cp-total-pages-key", "--cp-page-param", "--cp-max-pages", "--cp-limit-pages", "--cp-artifacts-dir"] of ::String

--cp-XXX options that take a value

CURL_URL_VALUE_OPTIONS = ["-e", "--referer", "--proxy", "--preproxy", "--doh-url"] of ::String

curl options that take a URL as value (don't mistake their value for target URL)

Constructors

parse(args : Array(String)) : Config
Source

Instance methods

artifacts_dir
Source
artifacts_dir=(artifacts_dir : String)
Source
curl_args
Source
curl_args=(curl_args : Array(String))
Source
data_key
Source
data_key=(data_key : String)
Source
header_file
Source
header_file=(header_file : String | Nil)
Source
limit_pages
Source
limit_pages=(limit_pages : Int32)
Source
max_pages
Source
max_pages=(max_pages : Int32)
Source
output_file
Source
output_file=(output_file : String | Nil)
Source
page_key
Source
page_key=(page_key : String)
Source
page_param
Source
page_param=(page_param : String)
Source
pagination_key
Source
pagination_key=(pagination_key : String)
Source
paging_mode
Source
paging_mode=(paging_mode : Bool)
Source
total_pages_key
Source
total_pages_key=(total_pages_key : String)
Source
url=(url : String)
Source