Class: Crawlberg::ScrapeResult
- Inherits:
-
Object
- Object
- Crawlberg::ScrapeResult
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#assets ⇒ Array[DownloadedAsset]?
Returns the value of attribute assets.
-
#auth_header_sent ⇒ Boolean?
Returns the value of attribute auth_header_sent.
-
#body_size ⇒ Integer?
Returns the value of attribute body_size.
-
#browser ⇒ BrowserExtras?
Returns the value of attribute browser.
-
#browser_used ⇒ Boolean?
Returns the value of attribute browser_used.
-
#content_type ⇒ String?
Returns the value of attribute content_type.
-
#crawl_delay ⇒ Integer?
Returns the value of attribute crawl_delay.
-
#detected_charset ⇒ String?
Returns the value of attribute detected_charset.
-
#downloaded_document ⇒ DownloadedDocument?
Returns the value of attribute downloaded_document.
-
#extracted_data ⇒ json_value?
Returns the value of attribute extracted_data.
-
#extraction_meta ⇒ ExtractionMeta?
Returns the value of attribute extraction_meta.
-
#feeds ⇒ Array[FeedInfo]?
Returns the value of attribute feeds.
-
#final_url ⇒ String?
Returns the value of attribute final_url.
-
#html ⇒ String?
Returns the value of attribute html.
-
#images ⇒ Array[ImageInfo]?
Returns the value of attribute images.
-
#is_allowed ⇒ Boolean?
Returns the value of attribute is_allowed.
-
#is_pdf ⇒ Boolean?
Returns the value of attribute is_pdf.
-
#js_render_hint ⇒ Boolean?
Returns the value of attribute js_render_hint.
-
#json_ld ⇒ Array[JsonLdEntry]?
Returns the value of attribute json_ld.
-
#links ⇒ Array[LinkInfo]?
Returns the value of attribute links.
-
#markdown ⇒ MarkdownResult?
Returns the value of attribute markdown.
-
#metadata ⇒ PageMetadata?
Returns the value of attribute metadata.
-
#nofollow_detected ⇒ Boolean?
Returns the value of attribute nofollow_detected.
-
#noindex_detected ⇒ Boolean?
Returns the value of attribute noindex_detected.
-
#response_meta ⇒ ResponseMeta?
Returns the value of attribute response_meta.
-
#screenshot_base64 ⇒ String?
Returns the value of attribute screenshot_base64.
-
#status_code ⇒ Integer?
Returns the value of attribute status_code.
-
#was_skipped ⇒ Boolean?
Returns the value of attribute was_skipped.
-
#x_robots_tag ⇒ String?
Returns the value of attribute x_robots_tag.
Instance Method Summary collapse
-
#initialize ⇒ ScrapeResult
constructor
A new instance of ScrapeResult.
Constructor Details
#initialize ⇒ ScrapeResult
Returns a new instance of ScrapeResult.
189 |
# File 'sig/types.rbs', line 189
def initialize: (?status_code: Integer, ?final_url: String, ?content_type: String, ?html: String, ?body_size: Integer, ?metadata: PageMetadata, ?links: Array[LinkInfo], ?images: Array[ImageInfo], ?feeds: Array[FeedInfo], ?json_ld: Array[JsonLdEntry], ?is_allowed: bool, ?crawl_delay: Integer, ?noindex_detected: bool, ?nofollow_detected: bool, ?x_robots_tag: String, ?is_pdf: bool, ?was_skipped: bool, ?detected_charset: String, ?auth_header_sent: bool, ?response_meta: ResponseMeta, ?assets: Array[DownloadedAsset], ?js_render_hint: bool, ?browser_used: bool, ?markdown: MarkdownResult, ?extracted_data: json_value, ?extraction_meta: ExtractionMeta, ?screenshot_base64: String, ?downloaded_document: DownloadedDocument, ?browser: BrowserExtras) -> void
|
Instance Attribute Details
#assets ⇒ Array[DownloadedAsset]?
Returns the value of attribute assets.
179 180 181 |
# File 'sig/types.rbs', line 179 def assets @assets end |
#auth_header_sent ⇒ Boolean?
Returns the value of attribute auth_header_sent.
177 178 179 |
# File 'sig/types.rbs', line 177 def auth_header_sent @auth_header_sent end |
#body_size ⇒ Integer?
Returns the value of attribute body_size.
163 164 165 |
# File 'sig/types.rbs', line 163 def body_size @body_size end |
#browser ⇒ BrowserExtras?
Returns the value of attribute browser.
187 188 189 |
# File 'sig/types.rbs', line 187 def browser @browser end |
#browser_used ⇒ Boolean?
Returns the value of attribute browser_used.
181 182 183 |
# File 'sig/types.rbs', line 181 def browser_used @browser_used end |
#content_type ⇒ String?
Returns the value of attribute content_type.
161 162 163 |
# File 'sig/types.rbs', line 161 def content_type @content_type end |
#crawl_delay ⇒ Integer?
Returns the value of attribute crawl_delay.
170 171 172 |
# File 'sig/types.rbs', line 170 def crawl_delay @crawl_delay end |
#detected_charset ⇒ String?
Returns the value of attribute detected_charset.
176 177 178 |
# File 'sig/types.rbs', line 176 def detected_charset @detected_charset end |
#downloaded_document ⇒ DownloadedDocument?
Returns the value of attribute downloaded_document.
186 187 188 |
# File 'sig/types.rbs', line 186 def downloaded_document @downloaded_document end |
#extracted_data ⇒ json_value?
Returns the value of attribute extracted_data.
183 184 185 |
# File 'sig/types.rbs', line 183 def extracted_data @extracted_data end |
#extraction_meta ⇒ ExtractionMeta?
Returns the value of attribute extraction_meta.
184 185 186 |
# File 'sig/types.rbs', line 184 def @extraction_meta end |
#feeds ⇒ Array[FeedInfo]?
Returns the value of attribute feeds.
167 168 169 |
# File 'sig/types.rbs', line 167 def feeds @feeds end |
#final_url ⇒ String?
Returns the value of attribute final_url.
160 161 162 |
# File 'sig/types.rbs', line 160 def final_url @final_url end |
#html ⇒ String?
Returns the value of attribute html.
162 163 164 |
# File 'sig/types.rbs', line 162 def html @html end |
#images ⇒ Array[ImageInfo]?
Returns the value of attribute images.
166 167 168 |
# File 'sig/types.rbs', line 166 def images @images end |
#is_allowed ⇒ Boolean?
Returns the value of attribute is_allowed.
169 170 171 |
# File 'sig/types.rbs', line 169 def is_allowed @is_allowed end |
#is_pdf ⇒ Boolean?
Returns the value of attribute is_pdf.
174 175 176 |
# File 'sig/types.rbs', line 174 def is_pdf @is_pdf end |
#js_render_hint ⇒ Boolean?
Returns the value of attribute js_render_hint.
180 181 182 |
# File 'sig/types.rbs', line 180 def js_render_hint @js_render_hint end |
#json_ld ⇒ Array[JsonLdEntry]?
Returns the value of attribute json_ld.
168 169 170 |
# File 'sig/types.rbs', line 168 def json_ld @json_ld end |
#links ⇒ Array[LinkInfo]?
Returns the value of attribute links.
165 166 167 |
# File 'sig/types.rbs', line 165 def links @links end |
#markdown ⇒ MarkdownResult?
Returns the value of attribute markdown.
182 183 184 |
# File 'sig/types.rbs', line 182 def markdown @markdown end |
#metadata ⇒ PageMetadata?
Returns the value of attribute metadata.
164 165 166 |
# File 'sig/types.rbs', line 164 def @metadata end |
#nofollow_detected ⇒ Boolean?
Returns the value of attribute nofollow_detected.
172 173 174 |
# File 'sig/types.rbs', line 172 def nofollow_detected @nofollow_detected end |
#noindex_detected ⇒ Boolean?
Returns the value of attribute noindex_detected.
171 172 173 |
# File 'sig/types.rbs', line 171 def noindex_detected @noindex_detected end |
#response_meta ⇒ ResponseMeta?
Returns the value of attribute response_meta.
178 179 180 |
# File 'sig/types.rbs', line 178 def @response_meta end |
#screenshot_base64 ⇒ String?
Returns the value of attribute screenshot_base64.
185 186 187 |
# File 'sig/types.rbs', line 185 def screenshot_base64 @screenshot_base64 end |
#status_code ⇒ Integer?
Returns the value of attribute status_code.
159 160 161 |
# File 'sig/types.rbs', line 159 def status_code @status_code end |
#was_skipped ⇒ Boolean?
Returns the value of attribute was_skipped.
175 176 177 |
# File 'sig/types.rbs', line 175 def was_skipped @was_skipped end |
#x_robots_tag ⇒ String?
Returns the value of attribute x_robots_tag.
173 174 175 |
# File 'sig/types.rbs', line 173 def x_robots_tag @x_robots_tag end |