mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 16:40:00 +02:00
readability stub
This commit is contained in:
parent
273ddd832c
commit
d906f6b7fe
5 changed files with 42 additions and 21 deletions
|
@ -1,7 +1,7 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use std::fs::File;
|
||||
use std::io::{Error, ErrorKind, Write};
|
||||
use std::path::PathBuf;
|
||||
use std::fs::File;
|
||||
use url::Url;
|
||||
|
||||
pub struct Article {
|
||||
|
@ -28,6 +28,9 @@ impl Article {
|
|||
}
|
||||
}
|
||||
|
||||
Err(Error::new(ErrorKind::NotFound, "Article does not contain HTML"))
|
||||
Err(Error::new(
|
||||
ErrorKind::NotFound,
|
||||
"Article does not contain HTML",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue