Skip to content

alexfixer/Playground-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Playground-backup

A script to download profile public images from a Playground.

Prerequisites

Install Python

  1. Download Python from python.org
  2. During installation, check "Add Python to PATH"
  3. Verify installation by opening a terminal/command prompt and running:
    python --version
    pip --version
    

Install Dependencies

Open a terminal/command prompt and run:

pip install requests

Usage

Basic Usage

Place the script in the folder where you want to save the images, and then open the folder in the terminal.

The script downloads data in json format, which contains available information about the images: prompt, name, dimensions, likes, generation settings, and more.

By default, the script saves both formats (png and jpeg), but you can specify only one, see the instructions below.

By default, the script saves images under the names specified in json and on the site, this will allow you to find image data by its name.

But the images in the folder will be unordered.

But if you use the --name-by-date option, this will add the time of its creation at the start of the image name, which will allow you to organize them.

Run:

python image-fetcher.py [USER_ID]

Replace [USER_ID] with the target user's ID or profile URL.

Command-Line Options

Option Description Example
USER_ID Required. User ID or full profile URL python image-fetcher.py cldm1234abcd
--output Custom output directory python image-fetcher.py cldm1234abcd --output my_images
--only-png Download only PNG images python image-fetcher.py cldm1234abcd --only-png
--only-jpeg Download only JPEG images python image-fetcher.py cldm1234abcd --only-jpeg
--name-by-date Rename files to creation date python image-fetcher.py cldm1234abcd --name-by-date

Examples

  1. Download all images for a user:

    python image-fetcher.py cldm1234abcdefjhig
  2. Download only PNG images to a specific directory:

    python image-fetcher.py cldm1234abcdefjhig --output ./playground_images --only-png
  3. Download images with date-based filenames:

    python image-fetcher.py cldm1234abcdefjhig --name-by-date

Output Structure

  • downloaded_data/: Default output directory
    • png/: PNG images
    • jpeg/: JPEG images
    • JSON files with image metadata

Troubleshooting

  • Ensure you have a stable internet connection
  • Check that the user ID or profile URL is correct
  • Verify you have write permissions in the output directory
  • Check if you have enough harddisk space(up to 1.5 Gigabytes per 1000 images)

Notes

  • Script downloads only public images
  • Large collections may take some time to download(up to several hours)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages