croessler / tpdne

Download images from https://www.thispersondoesnotexist.com

Home Page:https://github.com/croessler/tpdne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Downloader for thispersondoesnotexist.com

This is a simple bash script that downloads images from https://www.thispersondoesnotexist.com. In very short intervalls (it appears to be each reload of the page but it isn't), a new image of an artificially generated face is loaded. This script uses wget to loop through a given number of times, downloading the images. It stores them in the format .jpg (for example 20201211164854.jpg). Because of the timestamp precision and to avoid duplicates, the delay between each download iteration ("delay"-parameter) should take at least 1 second.

Author

Created by Ray Heffer on February 23 2019

Adapted by Christian Roessler on December 11 2020 (V1.3)

Usage

Max = Number of images you want downloaded

URL = The URL of the site to use (E.g. https://www.thispersondoesnotexist.com/image)

imgdir = Directory to place the images (E.g. images)

delay = Waiting time in seconds between each iteration to prevent duplicates. Min.1.

Feel free to modify this script to your own needs. Have fun!

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

Download images from https://www.thispersondoesnotexist.com

https://github.com/croessler/tpdne


Languages

Language:Shell 100.0%