dhref

Crates.iodhref
lib.rsdhref
version0.2.0
sourcesrc
created_at2021-04-19 22:37:20.948498
updated_at2021-05-19 12:48:45.567145
descriptionDownload files embed to a page through relative/root-relative URLs, from your terminal.
homepage
repositoryhttps://github.com/l-const/dhref
max_upload_size
id386840
size49,947
Konstantinos Lampropoulos (l-const)

documentation

README

dhref

crates.io

Download files embed to a page through relative/root-relative URLs, from your terminal.

Description

The program scrapes the url page specified for the hyperlink with
relative/root-relative URLs and asynchronously downloads files filtered by the filetype specified in the input.

FileTypes

  • PDF

  • XLSX

  • DOCX

  • DOC

  • CSV

  • PPT

  • PPTX

  • ALL OF ABOVE

Examples

    dhref <url>  ftype pdf/PDF
    dhref <url>  ftype csv/CSV
    dhref <url>  -o ./ -f pdf
    dhref <url>  -o ./out -f csv

Install

    cargo install dhref

Help

    dhref --help

    dhref 0.2.0
    Kostas L. <konlampro94@gmail.com>
    Download files embed in a page through
        relative and root-relative hyperlinks.

    USAGE:
        dhref [OPTIONS] <uri>

    FLAGS:
        -h, --help       Prints help information
        -V, --version    Prints version information

    OPTIONS:
        -f <ftype>          File suffix for the type of files to be searched( e.g pdf,doc,csv). (Optional)
        -o <out_dir>        Relative path for the folder to place the output. (Optional)

    ARGS:
        <uri>    Http page url to be scraped. (Required)
Commit count: 43

cargo fmt