Update parser

This commit is contained in:
2026-03-05 12:51:31 -06:00
parent b20d68c9f0
commit c283444d68
7 changed files with 603 additions and 103 deletions

View File

@@ -97,9 +97,10 @@ func (c *Client) GetPageSection(title string, sectionIndex int) (*ParsedPage, er
// GetPageHTML fetches the rendered HTML for a page.
func (c *Client) GetPageHTML(title string) (*ParsedPage, error) {
params := url.Values{
"action": {"parse"},
"page": {title},
"prop": {"text|sections"},
"action": {"parse"},
"page": {title},
"prop": {"text|sections"},
"redirects": {"1"},
}
var resp parseResponse
@@ -133,3 +134,4 @@ func FindSectionIndex(sections []Section, name string) int {
}
return -1
}