Files
cheatsheet-tldr/tldr/gallery-dl
2024-12-21 00:17:09 +00:00

30 lines
902 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gallery-dl
> Download image galleries and collections from several image hosting sites.
> More information: <https://github.com/mikf/gallery-dl>.
- Download images from the specified URL:
`gallery-dl "{{url}}"`
- Save images to a specific directory:
`gallery-dl --destination {{path/to/directory}} "{{url}}"`
- Retrieve pre-existing cookies from your web browser (useful for sites that require login):
`gallery-dl --cookies-from-browser {{browser}} "{{url}}"`
- Get the direct URL of an image from a site supporting authentication with username and password:
`gallery-dl --get-urls --username {{username}} --password {{password}} "{{url}}"`
- Filter manga chapters by chapter number and language:
`gallery-dl --chapter-filter "{{10 <= chapter < 20}}" --option "lang={{language_code}}" "{{url}}"`