Jupiee / rawst

Rawst is cli downloader, written in rust
GNU General Public License v3.0
14 stars 2 forks source link

Download using reqwest #14

Open Dietr1ch opened 2 weeks ago

Dietr1ch commented 2 weeks ago

There's just too many tiny details to get downloading a single IRI right,

I had trouble with https://cataas.com/cat and https://aoeu.com,

 RUST_BACKTRACE=1 cargo run -- https://cataas.com/cat
 RUST_BACKTRACE=1 cargo run -- https://aoeu.com

Using reqwest seems like a better way to solve this than tackling each individual detail, as I don't think they are worth the sheer amount of work it'd duplicate doing that.

Jupiee commented 2 weeks ago

Hello, there is some other stuff like

In the case of https://cataas.com/cat and https://aoeu.com, I haven't looked into handling downloads for webpages and API responses.