Some small changes.
This commit is contained in:
@@ -27,7 +27,9 @@ struct PageProps {
|
||||
struct PhoneData {
|
||||
alternative_formats: Vec<String>,
|
||||
clean_number: String,
|
||||
#[serde(default)]
|
||||
comments: Vec<Comment>,
|
||||
statistics_text: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
@@ -67,10 +69,8 @@ impl Probe for Hitta {
|
||||
|
||||
let data: Data = serde_json::from_str(&json).unwrap();
|
||||
|
||||
println!(
|
||||
"hitta.se: {}",
|
||||
data.props.page_props.phone_data.clean_number
|
||||
);
|
||||
println!("hitta.se:");
|
||||
println!(" {}", data.props.page_props.phone_data.statistics_text);
|
||||
|
||||
for comment in &data.props.page_props.phone_data.comments {
|
||||
println!(" * {}", comment.comment);
|
||||
|
||||
Reference in New Issue
Block a user