Skip to main content

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​

NameTypeRequired
Description
urlstr | int

The full Steam guide URL or its numeric ID. If an ID is given, the full URL will be

https://steamcommunity.com/sharedfiles/filedetails/?id=<url>

Returns​

NameType
Description
v_1DocumentThe 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​

NameTypeRequired
Description
htmlstrThe HTML content to be parsed.

Returns​

NameType
Description
v_1DocumentThe structured data reconstructed from the given guide.