1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-09 00:45:31 +02:00

eliminate additional head request

This commit is contained in:
Jan Lukas Gernert 2023-04-11 07:49:01 +02:00
parent fa41633e11
commit c198225012
3 changed files with 27 additions and 16 deletions

View file

@ -18,6 +18,12 @@ pub struct Args {
#[derive(Subcommand)]
pub enum Commands {
/// Use the complete pipeline
All {
/// Source Url to download HTML from
#[arg(long, value_name = "URL")]
source_url: Option<String>,
},
/// Only use the Readability parser
Readability {
/// Source HTML file
@ -32,6 +38,7 @@ pub enum Commands {
#[arg(long, value_name = "URL")]
source_url: Option<String>,
},
/// Only use (a subset of) the Ftr parser
Ftr {
/// Source HTML file
#[arg(long, value_name = "FILE")]