Skip to content

Commit 77aea43

Browse files
authored
Organize CLI examples in README
1 parent 57e9e18 commit 77aea43

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,27 @@ Options:
5151
```
5252

5353
Examples:
54+
55+
<details>
56+
<summary>Download multiple GIFs</summary>
57+
58+
```console
59+
$ redgifs https://redgifs.com/watch/abc https://redgifs.com/watch/xyz https://redgifs.com/watch/def
60+
Downloading abc...
61+
Download complete
62+
63+
Downloading xyz...
64+
Download complete
65+
66+
Downloading def...
67+
Download complete
68+
```
69+
</details>
70+
71+
<details>
72+
<summary>Download GIFs to a specific folder</summary>
73+
5474
```console
55-
$ # Download files to a folder
5675
$ ls
5776
Home Downloads Homework Music
5877
Backup Documents Videos Games
@@ -62,10 +81,12 @@ Download complete
6281
$ ls Homework
6382
xyz.mp4
6483
```
84+
</details>
85+
86+
<details>
87+
<summary>Download GIFs from a text file that contains a list of URLs</summary>
6588

6689
```console
67-
$ # Download GIFs from a file that contains a list of URLs
68-
$
6990
$ # urls.txt:
7091
$ # https://redigfs.com/watch/xyz
7192
$ # https://redigfs.com/watch/qwe
@@ -77,17 +98,20 @@ Downloading xyz...
7798
Download complete
7899
Downloading qwe...
79100
```
101+
</details>
102+
103+
<details>
104+
<summary>Download all GIFs from a user's profile</summary>
80105

81106
```console
82-
$ # Download all GIFs from a user's profile
83107
$ mkdir rg_vids
84108
$ redgifs https://redgifs.com/users/usernamethatexists -f rg_vids
85109
Downloaded 1/3 GIFs
86110
Downloaded 2/3 GIFs
87-
Downloaded 3/3 GIFs
88111
...
89112
Downloaded 3/3 videos of user usernamethatexists to folder rg_vids sucessfully!
90113
```
114+
</details>
91115

92116
#### 2. Synchronous usage:
93117
```py

0 commit comments

Comments
 (0)