prnt.sc/prntscr.com gallery downloader
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
This command-line program downloads your Lightshot (
prnt.sc) gallery and saves it to disk.
Heavily inspired by Wipie/LightShotGalleryDownloader-CLI.
How to get
Either download a binary from the Releases page, or clone the source and build it yourself.
$ git clone https://github.com/zorael/prntscget.git
How to build
You need a D compiler and the official
dub package manager. On Windows it comes bundled in the compiler archive, while on Linux it may have to be installed separately. Refer to your repositories.
$ dub build
How to use
usage: prntscget [options] -c --cookie Cookie to download gallery of (see README). -f --file Filename to save the JSON list of images to. -d --dir Target image directory. -o --offset Images to skip considering, before checking for existing images. -s --skip Images to effectively skip downloading, after applying offset and checking for existing files. -n --num Number of images to download. -r --retries How many times to retry downloading an image. -D --delay Delay between image downloads, in seconds. -t --timeout Download attempt read timeout, in seconds. --dry-run Download nothing, only echo what would be done.
Gallery access cookie
To have the program gain access to your gallery, you need to extract the value of the
__auth cookie that your browser sets when logging into the page, and pass it to the program.
3. Select the cookie provider
4. Copy the value of the
2. Click on
4. Select the cookie provider
5. Copy the value of the
Pass this value to the program with the
$ ./prntscget -c thesecretsixtyfourletterauthcookiestringgoeshere
This fetches a list of 10,000 of your images and saves it to a file in the current directory (default
target.json), then starts downloading the images listed therein.
Subsequent executions of the program will reuse this file, so you only need to supply the cookie once, or whenever you want to update the list and sync it with your gallery for new images.
If the process was interrupted it will resume downloading where it previously stopped. Failed downloads are detected and will be retried.
target.jsonfetched for use with Wipie/LightShotGalleryDownloader-CLI can be used directly as-is.
If it doesn't work
This project is licensed under the MIT license - see the LICENSE file for details.
- Registered by JR
- 0.1.3 released 7 months ago
- Copyright © 2021, JR