Class: Crawlberg::CrawlConfig
- Inherits:
-
Object
- Object
- Crawlberg::CrawlConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#allow_subdomains ⇒ Boolean
readonly
Returns the value of attribute allow_subdomains.
-
#asset_types ⇒ Array[AssetCategory]
readonly
Returns the value of attribute asset_types.
-
#auth ⇒ AuthConfig?
readonly
Returns the value of attribute auth.
-
#bm25_query ⇒ String?
readonly
Returns the value of attribute bm25_query.
-
#bm25_threshold ⇒ Float?
readonly
Returns the value of attribute bm25_threshold.
-
#browser ⇒ BrowserConfig
readonly
Returns the value of attribute browser.
-
#browser_profile ⇒ String?
readonly
Returns the value of attribute browser_profile.
-
#capture_screenshot ⇒ Boolean
readonly
Returns the value of attribute capture_screenshot.
-
#content ⇒ ContentConfig
readonly
Returns the value of attribute content.
-
#content_filter ⇒ ContentFilterKind?
readonly
Returns the value of attribute content_filter.
-
#cookies_enabled ⇒ Boolean
readonly
Returns the value of attribute cookies_enabled.
-
#crawl_strategy ⇒ CrawlStrategyKind
readonly
Returns the value of attribute crawl_strategy.
-
#custom_headers ⇒ Hash[String, String]
readonly
Returns the value of attribute custom_headers.
-
#document_content_encoding ⇒ DocumentContentEncoding?
readonly
Returns the value of attribute document_content_encoding.
-
#document_max_size ⇒ Integer?
readonly
Returns the value of attribute document_max_size.
-
#document_mime_types ⇒ Array[String]
readonly
Returns the value of attribute document_mime_types.
-
#document_output_dir ⇒ String?
readonly
Returns the value of attribute document_output_dir.
-
#document_url_depth ⇒ Integer?
readonly
Returns the value of attribute document_url_depth.
-
#download_assets ⇒ Boolean
readonly
Returns the value of attribute download_assets.
-
#download_documents ⇒ Boolean
readonly
Returns the value of attribute download_documents.
-
#exclude_paths ⇒ Array[String]
readonly
Returns the value of attribute exclude_paths.
-
#follow_document_urls ⇒ Boolean
readonly
Returns the value of attribute follow_document_urls.
-
#include_paths ⇒ Array[String]
readonly
Returns the value of attribute include_paths.
-
#map_limit ⇒ Integer?
readonly
Returns the value of attribute map_limit.
-
#map_search ⇒ String?
readonly
Returns the value of attribute map_search.
-
#max_asset_size ⇒ Integer?
readonly
Returns the value of attribute max_asset_size.
-
#max_body_size ⇒ Integer?
readonly
Returns the value of attribute max_body_size.
-
#max_concurrent ⇒ Integer?
readonly
Returns the value of attribute max_concurrent.
-
#max_depth ⇒ Integer?
readonly
Returns the value of attribute max_depth.
-
#max_links_per_page ⇒ Integer?
readonly
Returns the value of attribute max_links_per_page.
-
#max_pages ⇒ Integer?
readonly
Returns the value of attribute max_pages.
-
#max_redirects ⇒ Integer
readonly
Returns the value of attribute max_redirects.
-
#proxy ⇒ ProxyConfig?
readonly
Returns the value of attribute proxy.
-
#rate_limit_ms ⇒ Integer?
readonly
Returns the value of attribute rate_limit_ms.
-
#remove_tags ⇒ Array[String]
readonly
Returns the value of attribute remove_tags.
-
#request_timeout ⇒ Integer
readonly
Returns the value of attribute request_timeout.
-
#respect_robots_txt ⇒ Boolean
readonly
Returns the value of attribute respect_robots_txt.
-
#retry_codes ⇒ Array[Integer]
readonly
Returns the value of attribute retry_codes.
-
#retry_count ⇒ Integer
readonly
Returns the value of attribute retry_count.
-
#save_browser_profile ⇒ Boolean
readonly
Returns the value of attribute save_browser_profile.
-
#soft_http_errors ⇒ Boolean
readonly
Returns the value of attribute soft_http_errors.
-
#ssrf ⇒ SsrfPolicy
readonly
Returns the value of attribute ssrf.
-
#ssrf_deny_private_explicit ⇒ Boolean?
readonly
Returns the value of attribute ssrf_deny_private_explicit.
-
#stay_on_domain ⇒ Boolean
readonly
Returns the value of attribute stay_on_domain.
-
#user_agent ⇒ String?
readonly
Returns the value of attribute user_agent.
-
#user_agents ⇒ Array[String]
readonly
Returns the value of attribute user_agents.
-
#warc_output ⇒ String?
readonly
Returns the value of attribute warc_output.
Instance Method Summary collapse
-
#initialize ⇒ CrawlConfig
constructor
A new instance of CrawlConfig.
- #validate ⇒ void
Constructor Details
#initialize ⇒ CrawlConfig
Returns a new instance of CrawlConfig.
188 |
# File 'sig/types.rbs', line 188
def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy: CrawlStrategyKind, ?content_filter: ContentFilterKind, ?bm25_query: String, ?bm25_threshold: Float, ?respect_robots_txt: bool, ?soft_http_errors: bool, ?user_agent: String, ?stay_on_domain: bool, ?allow_subdomains: bool, ?include_paths: Array[String], ?exclude_paths: Array[String], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?cookies_enabled: bool, ?auth: AuthConfig, ?max_body_size: Integer, ?remove_tags: Array[String], ?content: ContentConfig, ?map_limit: Integer, ?map_search: String, ?download_assets: bool, ?asset_types: Array[AssetCategory], ?max_asset_size: Integer, ?browser: BrowserConfig, ?proxy: ProxyConfig, ?user_agents: Array[String], ?capture_screenshot: bool, ?follow_document_urls: bool, ?document_url_depth: Integer, ?download_documents: bool, ?document_max_size: Integer, ?document_mime_types: Array[String], ?document_output_dir: String, ?document_content_encoding: DocumentContentEncoding, ?warc_output: String, ?browser_profile: String, ?save_browser_profile: bool, ?ssrf: SsrfPolicy, ?ssrf_deny_private_explicit: bool) -> void
|
Instance Attribute Details
#allow_subdomains ⇒ Boolean (readonly)
Returns the value of attribute allow_subdomains.
152 153 154 |
# File 'sig/types.rbs', line 152 def allow_subdomains @allow_subdomains end |
#asset_types ⇒ Array[AssetCategory] (readonly)
Returns the value of attribute asset_types.
169 170 171 |
# File 'sig/types.rbs', line 169 def asset_types @asset_types end |
#auth ⇒ AuthConfig? (readonly)
Returns the value of attribute auth.
162 163 164 |
# File 'sig/types.rbs', line 162 def auth @auth end |
#bm25_query ⇒ String? (readonly)
Returns the value of attribute bm25_query.
146 147 148 |
# File 'sig/types.rbs', line 146 def bm25_query @bm25_query end |
#bm25_threshold ⇒ Float? (readonly)
Returns the value of attribute bm25_threshold.
147 148 149 |
# File 'sig/types.rbs', line 147 def bm25_threshold @bm25_threshold end |
#browser ⇒ BrowserConfig (readonly)
Returns the value of attribute browser.
171 172 173 |
# File 'sig/types.rbs', line 171 def browser @browser end |
#browser_profile ⇒ String? (readonly)
Returns the value of attribute browser_profile.
183 184 185 |
# File 'sig/types.rbs', line 183 def browser_profile @browser_profile end |
#capture_screenshot ⇒ Boolean (readonly)
Returns the value of attribute capture_screenshot.
174 175 176 |
# File 'sig/types.rbs', line 174 def capture_screenshot @capture_screenshot end |
#content ⇒ ContentConfig (readonly)
Returns the value of attribute content.
165 166 167 |
# File 'sig/types.rbs', line 165 def content @content end |
#content_filter ⇒ ContentFilterKind? (readonly)
Returns the value of attribute content_filter.
145 146 147 |
# File 'sig/types.rbs', line 145 def content_filter @content_filter end |
#cookies_enabled ⇒ Boolean (readonly)
Returns the value of attribute cookies_enabled.
161 162 163 |
# File 'sig/types.rbs', line 161 def @cookies_enabled end |
#crawl_strategy ⇒ CrawlStrategyKind (readonly)
Returns the value of attribute crawl_strategy.
144 145 146 |
# File 'sig/types.rbs', line 144 def crawl_strategy @crawl_strategy end |
#custom_headers ⇒ Hash[String, String] (readonly)
Returns the value of attribute custom_headers.
155 156 157 |
# File 'sig/types.rbs', line 155 def custom_headers @custom_headers end |
#document_content_encoding ⇒ DocumentContentEncoding? (readonly)
Returns the value of attribute document_content_encoding.
181 182 183 |
# File 'sig/types.rbs', line 181 def document_content_encoding @document_content_encoding end |
#document_max_size ⇒ Integer? (readonly)
Returns the value of attribute document_max_size.
178 179 180 |
# File 'sig/types.rbs', line 178 def document_max_size @document_max_size end |
#document_mime_types ⇒ Array[String] (readonly)
Returns the value of attribute document_mime_types.
179 180 181 |
# File 'sig/types.rbs', line 179 def document_mime_types @document_mime_types end |
#document_output_dir ⇒ String? (readonly)
Returns the value of attribute document_output_dir.
180 181 182 |
# File 'sig/types.rbs', line 180 def document_output_dir @document_output_dir end |
#document_url_depth ⇒ Integer? (readonly)
Returns the value of attribute document_url_depth.
176 177 178 |
# File 'sig/types.rbs', line 176 def document_url_depth @document_url_depth end |
#download_assets ⇒ Boolean (readonly)
Returns the value of attribute download_assets.
168 169 170 |
# File 'sig/types.rbs', line 168 def download_assets @download_assets end |
#download_documents ⇒ Boolean (readonly)
Returns the value of attribute download_documents.
177 178 179 |
# File 'sig/types.rbs', line 177 def download_documents @download_documents end |
#exclude_paths ⇒ Array[String] (readonly)
Returns the value of attribute exclude_paths.
154 155 156 |
# File 'sig/types.rbs', line 154 def exclude_paths @exclude_paths end |
#follow_document_urls ⇒ Boolean (readonly)
Returns the value of attribute follow_document_urls.
175 176 177 |
# File 'sig/types.rbs', line 175 def follow_document_urls @follow_document_urls end |
#include_paths ⇒ Array[String] (readonly)
Returns the value of attribute include_paths.
153 154 155 |
# File 'sig/types.rbs', line 153 def include_paths @include_paths end |
#map_limit ⇒ Integer? (readonly)
Returns the value of attribute map_limit.
166 167 168 |
# File 'sig/types.rbs', line 166 def map_limit @map_limit end |
#map_search ⇒ String? (readonly)
Returns the value of attribute map_search.
167 168 169 |
# File 'sig/types.rbs', line 167 def map_search @map_search end |
#max_asset_size ⇒ Integer? (readonly)
Returns the value of attribute max_asset_size.
170 171 172 |
# File 'sig/types.rbs', line 170 def max_asset_size @max_asset_size end |
#max_body_size ⇒ Integer? (readonly)
Returns the value of attribute max_body_size.
163 164 165 |
# File 'sig/types.rbs', line 163 def max_body_size @max_body_size end |
#max_concurrent ⇒ Integer? (readonly)
Returns the value of attribute max_concurrent.
143 144 145 |
# File 'sig/types.rbs', line 143 def max_concurrent @max_concurrent end |
#max_depth ⇒ Integer? (readonly)
Returns the value of attribute max_depth.
140 141 142 |
# File 'sig/types.rbs', line 140 def max_depth @max_depth end |
#max_links_per_page ⇒ Integer? (readonly)
Returns the value of attribute max_links_per_page.
142 143 144 |
# File 'sig/types.rbs', line 142 def max_links_per_page @max_links_per_page end |
#max_pages ⇒ Integer? (readonly)
Returns the value of attribute max_pages.
141 142 143 |
# File 'sig/types.rbs', line 141 def max_pages @max_pages end |
#max_redirects ⇒ Integer (readonly)
Returns the value of attribute max_redirects.
158 159 160 |
# File 'sig/types.rbs', line 158 def max_redirects @max_redirects end |
#proxy ⇒ ProxyConfig? (readonly)
Returns the value of attribute proxy.
172 173 174 |
# File 'sig/types.rbs', line 172 def proxy @proxy end |
#rate_limit_ms ⇒ Integer? (readonly)
Returns the value of attribute rate_limit_ms.
157 158 159 |
# File 'sig/types.rbs', line 157 def rate_limit_ms @rate_limit_ms end |
#remove_tags ⇒ Array[String] (readonly)
Returns the value of attribute remove_tags.
164 165 166 |
# File 'sig/types.rbs', line 164 def @remove_tags end |
#request_timeout ⇒ Integer (readonly)
Returns the value of attribute request_timeout.
156 157 158 |
# File 'sig/types.rbs', line 156 def request_timeout @request_timeout end |
#respect_robots_txt ⇒ Boolean (readonly)
Returns the value of attribute respect_robots_txt.
148 149 150 |
# File 'sig/types.rbs', line 148 def respect_robots_txt @respect_robots_txt end |
#retry_codes ⇒ Array[Integer] (readonly)
Returns the value of attribute retry_codes.
160 161 162 |
# File 'sig/types.rbs', line 160 def retry_codes @retry_codes end |
#retry_count ⇒ Integer (readonly)
Returns the value of attribute retry_count.
159 160 161 |
# File 'sig/types.rbs', line 159 def retry_count @retry_count end |
#save_browser_profile ⇒ Boolean (readonly)
Returns the value of attribute save_browser_profile.
184 185 186 |
# File 'sig/types.rbs', line 184 def save_browser_profile @save_browser_profile end |
#soft_http_errors ⇒ Boolean (readonly)
Returns the value of attribute soft_http_errors.
149 150 151 |
# File 'sig/types.rbs', line 149 def soft_http_errors @soft_http_errors end |
#ssrf ⇒ SsrfPolicy (readonly)
Returns the value of attribute ssrf.
185 186 187 |
# File 'sig/types.rbs', line 185 def ssrf @ssrf end |
#ssrf_deny_private_explicit ⇒ Boolean? (readonly)
Returns the value of attribute ssrf_deny_private_explicit.
186 187 188 |
# File 'sig/types.rbs', line 186 def ssrf_deny_private_explicit @ssrf_deny_private_explicit end |
#stay_on_domain ⇒ Boolean (readonly)
Returns the value of attribute stay_on_domain.
151 152 153 |
# File 'sig/types.rbs', line 151 def stay_on_domain @stay_on_domain end |
#user_agent ⇒ String? (readonly)
Returns the value of attribute user_agent.
150 151 152 |
# File 'sig/types.rbs', line 150 def user_agent @user_agent end |
#user_agents ⇒ Array[String] (readonly)
Returns the value of attribute user_agents.
173 174 175 |
# File 'sig/types.rbs', line 173 def user_agents @user_agents end |
#warc_output ⇒ String? (readonly)
Returns the value of attribute warc_output.
182 183 184 |
# File 'sig/types.rbs', line 182 def warc_output @warc_output end |
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
189 |
# File 'sig/types.rbs', line 189
def validate: () -> void
|