mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 16:40:00 +02:00
cli to parse single page with ftr
This commit is contained in:
parent
d978059709
commit
fa41633e11
4 changed files with 173 additions and 34 deletions
|
@ -32,4 +32,22 @@ pub enum Commands {
|
|||
#[arg(long, value_name = "URL")]
|
||||
source_url: Option<String>,
|
||||
},
|
||||
Ftr {
|
||||
/// Source HTML file
|
||||
#[arg(long, value_name = "FILE")]
|
||||
html: Option<PathBuf>,
|
||||
|
||||
/// Base to complete relative Url
|
||||
#[arg(long, value_name = "URL")]
|
||||
base_url: Option<String>,
|
||||
|
||||
/// Source Url to download HTML from
|
||||
#[arg(long, value_name = "URL")]
|
||||
source_url: Option<String>,
|
||||
|
||||
/// The Ftr config to use
|
||||
/// Otherwise source_url and base_url will be used
|
||||
#[arg(long, value_name = "domain")]
|
||||
config: Option<String>,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue