Topic: e6py-v2: an e621 batch post downloader with authentication support, written in Python 3.

Posted under e621 Tools and Applications

I had been meaning to write a tool for downloading many posts at once, and the API update and subsequent breakage of all the existing tools provided a significant impetus to throw something together.

This tool only uses the "posts.json" endpoint, so I recommend familiarizing yourself with the various prefixes you can use in the search bar (e.g. "pool:")

Download: https://pastebin.com/raw/XXmLCJ43 (create a new .py file and paste everything into it)

How to Install

NOTE: If you're running Windows, you will need to install a Python 3 interpreter and add it to your PATH in the installer.

  • Download the latest Python installer from here: https://www.python.org/downloads/ and run the installer.
    • Be sure to click the checkbox that says "Add Python 3.x to PATH"
  • Once you've installed it, open a command prompt and install the required "requests" module if you haven't already by typing:
pip install requests
  • Finally, click on the script to run it (or run it from the command prompt if you want)

How to Authenticate

New site policy prevents some posts with tags blacklisted by default from showing (even in the API). To authenticate:

  • Create a text file named "credentials" in the same folder as the script
  • Put your username on the first line and your API key on the second line
    • To generate an API key, go to Account > My Profile > API Key > Generate
  • Restart the script

Updated

Thanks you so much for this. I had no idea how to use the API, but this code really taught me a lot.

I've also been working on a batch downloader, though mine doesn't come with authentication - it does verify files and skips the existing.
To edit tags downloaded, edit the first line of code, and to change the saving folder name, edit the second line.

link

If this is unappreciated, reply and I will delete this comment.

Updated

  • 1