Skip to main content

A simple library to download e621 images with embedded tags

Project description

dl621

A simple python module to download e621 images with embedded tags and description

Installation

pip install dl621

Usage

The program can be used as a simple command line program:

$ e621-dl -h
usage: e621-dl [-h] -i ID [-f FOLDER] [-p PREFIX] [-n] [-u USERAGENT]

Downloads e621 images with tags

optional arguments:
  -h, --help            show this help message and exit
  -i ID, --post_id ID   the ID of the e621 post
  -f FOLDER, --dl_folder FOLDER
                                                the folder to download to
  -p PREFIX, --name_prefix PREFIX
                                                this string will go at the beginning of filenames
  -n, --no_tags         don't save tags or metadata
  -u USERAGENT, --user_agent USERAGENT
                                                manual override of the user agent string

It can also be imported and used in your own scripts:

import dl621

r = dl621.download_image(post_id, output_folder=".", name_prefix=None, add_tags=True, user_agent=__default_user_agent__)
if r != None:
        print("Image downloaded! Location:", r)
else:
        print("Download failed!")

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

dl621-0.1.3.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page