Added comments from hitta.
This commit is contained in:
@@ -17,6 +17,7 @@ impl Probe for Hitta {
|
||||
.unwrap();
|
||||
|
||||
let document = Html::parse_document(&body);
|
||||
|
||||
let selector = Selector::parse(r#"div[class^="Header__WhoCalledHeader"] > h1"#).unwrap();
|
||||
|
||||
print!("Hitta.se:");
|
||||
@@ -24,6 +25,13 @@ impl Probe for Hitta {
|
||||
for element in document.select(&selector) {
|
||||
println!(" {}", element.text().collect::<String>());
|
||||
}
|
||||
|
||||
// Comments.
|
||||
let selector = Selector::parse(r#".topComment--comment"#).unwrap();
|
||||
|
||||
for element in document.select(&selector) {
|
||||
println!(" * {}", element.text().collect::<String>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user