Skip to main content

Gallery downloader - supports many galleries and reddit user histories

Project description

gallery_get (and reddit_get) - Download entire galleries

Many galleries make it hard to download all the images from a gallery. Their image links often redirect to a viewing page rather than the image itself, making it hard to grab all the images on a page (even with popular browser plugins). To get around this, gallery_get opens the redirect-links and grabs images from there.

reddit_get grabs all imgur albums and pictures submitted by a given reddit user. It relies on gallery_get.

Tested Versions and Galleries

Platforms, Python Versions:

  • OSX (Python 2.7.2 and 3.5.1)
  • Windows (Python 2.7.3 and 3.6.0)

Gallery Plugins:

  • 4chan
  • eroshare
  • fuskator
  • gfycat
  • gogoimage
  • imagefap
  • imagevenue
  • imgbox
  • imgur (albums and galleries)
  • Pornhub (albums and single videos)
  • shimmie
  • vidble
  • xHamster
  • xVideos

Generic Plugin works for:

  • (more)


You can either download locally or install it::

pip install gallery_get

Usage (Command Line)

Syntax for gallery_get::


Syntax for reddit_get::


If you call with no parameters, you'll be prompted for the gallery URL (for gallery_get) or reddit user (for reddit_get). You will also be prompted for a destination directory, which it will remember as the default for next time.

If you skip [DEST] it will look for the contents of last_gallery_dest.txt, falling back on the current working directory.

Usage (Python Environment)

Syntax for gallery_get::

import gallery_get, DESTINATION)

Syntax for reddit_get::

import reddit_get, DESTINATION)

Skipping parameters results in same corresponding behavior indicated above.


If you run gallery_get or reddit_get on the same URL/user and destination more than once, it will skip the already-existing images next time (unless the size has changed). This allows you to do incremental updates.

gallery_get comes with a few "plugins" customized for certain sites, along with a generic fallback plugin that works on multiple galleries. Note that galleries will change their markup from time to time, so these plugins may need to be updated to catch up with such changes. (Which brings us to the next section...)


I've provided a testing suite called that will run gallery_get/reddit_get with provided URLs and users. Options are as follows::

--noprompt          don't prompt for extra galleries
--input=INPUT_PATH  input CSV for testing (same format as output)

INPUT_PATH defaults to gallery_get_test_input.csv (provided) The output is gallery_get_test_output.csv

To add a new gallery/user to the test:

  1. run
  2. enter your gallery/user
  3. repeat step 2 for additional galleries/users
  4. if the output looks ok, replace gallery_get_test_input.csv with gallery_get_test_output.csv


Feel free to add your own plugins or make updates if you're familiar with regular expressions and/or Python logic!

Each plugin overrides the following with a string, regular expression, or function.

  • title
  • redirect links
  • image links
  • whether to use the same filename from the site, or use "001", "002", etc.

See comments in the existing plugin files for more details.


Licensed under the MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gallery_get-1.9.2.tar.gz (21.1 kB view hashes)

Uploaded source

Built Distribution

gallery_get-1.9.2-py3-none-any.whl (25.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page