GuideParser
ClassSource
GuideParser()
Parser for Steam Guide.
Pass the HTML file or URL of a Steam Guide. This parser will convert the guide to Document.
Note that the Steam rendering for the guide is heavily dependent to <div> tag. The reconstructions for line breaks in this parse may not be perfect.
Arguments
Initialization function is not specified.
Methods
parse
v_1: Document = self.parse(url: str | int)
Parse a guide.
Requires
| Name | Type | Required | |
|---|---|---|---|
url | str | int | The full Steam guide URL or its numeric ID. If an ID is given, the full URL will be
|
Returns
| Name | Type | |
|---|---|---|
v_1 | Document | The structured data reconstructed from the given guide. |
parse_html
v_1: Document = self.parse_html(html: str)
Parse the HTML content. The HTML content should be fetched from a Steam guide.
Requires
| Name | Type | Required | |
|---|---|---|---|
html | str | The HTML content to be parsed. |
Returns
| Name | Type | |
|---|---|---|
v_1 | Document | The structured data reconstructed from the given guide. |