Skip to content

Commit

Permalink
add tool logo and some adjusts for v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugogomess committed Oct 21, 2020
1 parent 14e100c commit d8c41d9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 50 deletions.
28 changes: 11 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
# Cyberdrop Downloader

Cyberdrop Downloader is a script to download all images of a cyberdrop.me album written in shell script
Cyberdrop Downloader is a script to download all images of a cyberdrop.me album written in shell script.
- It only will work on unix like OS

## Install
## Usage

If you dont have curl and wget installed:
1. Install dependencies:
```shell
$ apt install curl wget -y
```
$ chmod +x install-dependencies.sh && sudo ./install-dependencies.sh
```

## How to use

First add exec permisson:
```
2. Add exec permisson:
```shell
$ chmod +x ./cyberdrop-downloader.sh
```
And run:
```
$ ./cyberdrop-downloader.sh
3. run:
```shell
$ ./cyberdrop-downloader.sh <cyberdrop-link>
```
To download multiple links create a file with the links (one per line) then run:
```
```shell
$ ./cyberdrop-downloader.sh -m <filename>
```

### TODO

- Fix print figlet;
53 changes: 34 additions & 19 deletions cyberdrop-downloader.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
#!/bin/bash
#
# Cyberdrop Downloader by @hugogomess
# https://hugogomess.github.io/
# Cyberdrop Downloader by @0xkaneki
# https://0xkaneki.com/
#
# ABOUT:
# Cyberdrop Downloader is a script to download all images of a cyberdrop.me album written in shell script
#
# INSTALL:
# sudo ./install-dependencies.sh
# apt install curl wget -y
#
# USAGE:
# ./cyberdrop-downloader.sh <cyberdrop-link>
# Multiple Albums: ./cyberdrop-downloader.sh -m <filename>

VER='1.2';
VER='1.3';
COLOR1='\e[94m';
RESET='\e[0m';

if [ "$1" == "" ] || [ "$1" == "-h" ]; then
#echo ' _ _ _ _ _ ';
#echo ' __ _ _| |__ ___ _ _ __| |_ _ ___ _ __ ___ __| |_____ __ ___ _ | |___ __ _ __| |___ _ _ ';
#echo ' / _| || | '_ \/ -_) '_/ _` | '_/ _ \ '_ \___/ _` / _ \ V V / ' \| / _ \/ _` / _` / -_) '_| ';
#echo ' \__|\_, |_.__/\___|_| \__,_|_| \___/ .__/ \__,_\___/\_/\_/|_||_|_\___/\__,_\__,_\___|_| ';
#echo ' |__/ |_| ';
#echo '';
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @hugogomess$RESET";
echo -e "$COLOR1 _ _ _ _ _ ";
echo -e "$COLOR1 __ _ _| |__ ___ _ _ __| |_ _ ___ _ __ ___ __| |_____ __ ___ _ | |___ __ _ __| |___ _ _ ";
echo -e "$COLOR1 / _| || | _ \/ -_) _/ _ | _/ _ \ _ \___/ _ / _ \ V V / \| / _ \/ _ / _ / -_) _| ";
echo -e "$COLOR1 \__|\_, |_.__/\___|_| \__,_|_| \___/ .__/ \__,_\___/\_/\_/|_||_|_\___/\__,_\__,_\___|_| ";
echo -e "$COLOR1 |__/ |_| ";
echo -e "";
echo -e "";
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @0xkaneki$RESET";
echo -e "$COLOR1 + -- --=[ Usage: ./cyberdrop-downloader.sh <cyberdrop-link>$RESET";
echo -e "$COLOR1 + -- --=[ Multiple Files: ./cyberdrop-downloader.sh -m$RESET";
echo -e "$COLOR1 + -- --=[ Multiple Albums: ./cyberdrop-downloader.sh -m <filename>$RESET";
elif [ "$1" == "-m" ]; then
echo '';
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @hugogomess$RESET";
echo -e "$COLOR1 + -- --=[ Usage: ./cyberdrop-downloader.sh <cyberdrop-link>$RESET";
echo '';
echo -e "$COLOR1 _ _ _ _ _ ";
echo -e "$COLOR1 __ _ _| |__ ___ _ _ __| |_ _ ___ _ __ ___ __| |_____ __ ___ _ | |___ __ _ __| |___ _ _ ";
echo -e "$COLOR1 / _| || | _ \/ -_) _/ _ | _/ _ \ _ \___/ _ / _ \ V V / \| / _ \/ _ / _ / -_) _| ";
echo -e "$COLOR1 \__|\_, |_.__/\___|_| \__,_|_| \___/ .__/ \__,_\___/\_/\_/|_||_|_\___/\__,_\__,_\___|_| ";
echo -e "$COLOR1 |__/ |_| ";
echo -e "";
echo -e "";
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @0xkaneki$RESET";
echo -e "";

FILENAME=$2
while read LINE; do
Expand All @@ -43,15 +50,23 @@ elif [ "$1" == "-m" ]; then
cd "..";
done < $FILENAME;
else
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @hugogomess$RESET";
echo -e "$COLOR1 + -- --=[ Usage: ./cyberdrop-downloader.sh <cyberdrop-link>$RESET";
echo '';
echo -e "$COLOR1 _ _ _ _ _ ";
echo -e "$COLOR1 __ _ _| |__ ___ _ _ __| |_ _ ___ _ __ ___ __| |_____ __ ___ _ | |___ __ _ __| |___ _ _ ";
echo -e "$COLOR1 / _| || | _ \/ -_) _/ _ | _/ _ \ _ \___/ _ / _ \ V V / \| / _ \/ _ / _ / -_) _| ";
echo -e "$COLOR1 \__|\_, |_.__/\___|_| \__,_|_| \___/ .__/ \__,_\___/\_/\_/|_||_|_\___/\__,_\__,_\___|_| ";
echo -e "$COLOR1 |__/ |_| ";
echo -e "";
echo -e "";
echo -e "$COLOR1 + -- --=[ Cyberdrop Downloader v$VER by @0xkaneki$RESET";
echo -e "";

ALBUM_NAME=$(curl "$1" | grep 'title has-text-centered' | cut -d '"' -f6 | head -n1);
mkdir "$ALBUM_NAME" && cd "$ALBUM_NAME";

curl "$1" | grep 'id="file"' | cut -d '"' -f6 > LINKS;
wget -i LINKS -q --show-progress;
rm LINKS;
cd "..";
fi

exit
14 changes: 0 additions & 14 deletions install-dependencies.sh

This file was deleted.

0 comments on commit d8c41d9

Please sign in to comment.