Coder Social home page Coder Social logo

anthonygao / cyberdrop-dl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evan-sm/cyberdrop-dl

0.0 1.0 0.0 43 KB

๐Ÿ“ฆ๐ŸŒ Cyberdrop.me album downloader written in Rust ๐Ÿฆ€

Home Page: https://crates.io/crates/cyberdrop-dl

Dockerfile 6.59% Rust 76.05% HTML 17.36%

cyberdrop-dl's Introduction

๐Ÿ“ฆ๐ŸŒ cyberdrop-dl - cyberdrop.me Downloader written in Rust ๐Ÿฆ€

cyberdrop-dl_demo

The fastest https://cyberdrop.me album downloader there is, written in Rust as an exercise.

Usage

  • Download single album
$ cyberdrop-dl https://cyberdrop.me/a/album1
  • Download multiple albums
$ cyberdrop-downloader albums.txt
  • or
$ cyberdrop-dl https://cyberdrop.me/a/album1 https://cyberdrop.me/a/album2

Files are saved in current working directory named './cyberdrop-dl'.

How to install

Recomended. Install using cargo. You need Rust toolchain installed, get it here @ https://rustup.rs/

It's that simple

$ cargo install cyberdrop-dl

Docker

No need to build and install via Docker

$ docker run -it --rm -v "$(pwd)"/cyberdrop-dl:/cyberdrop-dl:rw wmw9/cyberdrop-dl cyberdrop-dl https://cyberdrop.me/a/album

TODO

  • Download multiple albums simultaneously
  • Download multiple album files in parallel
  • Accept list of albums.txt via remote URL
  • Custom destination directory via -o flag
  • Integrate with Telegram Bot for easier usage
  • Detect dublicate albums

What I Learned ๐Ÿง 

  • Tokio runtime (using channels, green threads, Arc<>, Semaphore)
  • HTML scraping
  • Terminal UI (multiple progress bars, spinners)
  • Async/Await
  • Async I/O
  • Working with filesystem
  • Rust basics (HTTP requests, args parsing, error handling)

cyberdrop-dl's People

Contributors

cyberdrop-me avatar evan-sm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.