mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 16:40:00 +02:00
start refactor & fingerprints
This commit is contained in:
parent
29df3aa698
commit
273ddd832c
16 changed files with 944 additions and 848 deletions
14
src/error.rs
14
src/error.rs
|
@ -8,20 +8,6 @@ pub struct ScraperError {
|
|||
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Debug, Fail)]
|
||||
pub enum ScraperErrorKind {
|
||||
#[fail(display = "libXml Error")]
|
||||
Xml,
|
||||
#[fail(display = "No content found")]
|
||||
Scrape,
|
||||
#[fail(display = "Url Error")]
|
||||
Url,
|
||||
#[fail(display = "Http request failed")]
|
||||
Http,
|
||||
#[fail(display = "Config Error")]
|
||||
Config,
|
||||
#[fail(display = "IO Error")]
|
||||
IO,
|
||||
#[fail(display = "Content-type suggest no html")]
|
||||
ContentType,
|
||||
#[fail(display = "Unknown Error")]
|
||||
Unknown,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue