Update parser
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user