/tpdne_py

Primary LanguagePythonMIT LicenseMIT

Overview

This script automatically downloads and crops images (to remove watermark) from https://www.thispersondoesnotexist.com.

Prerequisites

Installing Python

If you don't have Python installed, download and install the latest version from python.org.

##Recommended Setup: Using Anaconda Anaconda simplifies package management and deployment. It's recommended for managing Python dependencies for this project. You can download Anaconda here.

  1. Create a new Conda environment:
conda create --name myenv python=3.10.6
  1. Activate the environment:
conda activate myenv

Installing Required Libraries

With Anaconda (Recommended)

Within your Conda environment, install the necessary libraries:

conda install requests
conda install Pillow

Using pip

Alternatively, if you're not using Anaconda, install the libraries using pip:

pip install requests
pip install Pillow

Usage

To use the script, navigate to the directory containing tpdne.py and run:

python tpdne.py -n [number_of_images]

Replace [number_of_images] with the number of images you want to fetch and process.

The script saves the images in the current directory, naming them in the format image_{number}_{timestamp}.jpg.