steam group on roster page

This commit is contained in:
Robin Appelman 2024-02-23 22:32:01 +01:00
commit df91032de4
12 changed files with 993 additions and 960 deletions

View file

@ -154,7 +154,10 @@ impl Parser for TeamParser {
let steam_group = root
.select(&self.selector_steam_group)
.next()
.and_then(|link| link.attr("href").map(String::from));
.and_then(|link| {
link.attr("href")
.map(|group| group.replace("http://http", "http"))
});
let division = select_text(root, &self.selector_team_division)
.ok_or(ParseError::ElementNotFound {