[−][src]Function nyaasi_scraper::parse_html
pub fn parse_html(html: &str, url: &str) -> Result<Results, String>
Parses HTML source and the page's url into a more usable format.
This function can parse HTML from the home page (https://nyaa.si/?query=params
)
or from an user's profile (https://nyaa.si/user/UserName
)
The same url used for fetching the html string should be passed as the second parameter for this function.
An error is returned if parsing fails.