diff --git a/gallery-dl/gallery-dl.py b/gallery-dl/gallery-dl.py new file mode 100644 index 0000000..d7eb227 --- /dev/null +++ b/gallery-dl/gallery-dl.py @@ -0,0 +1,11 @@ +import subprocess + +db_link = r"https://rule34.xxx/index.php\?page=post\&s\=list\&tags\=meeewchi" +db_artist = "meeewchi" + +def galleryDl(link, artist): + command = f"gallery-dl --config gallery-dl/config.json --directory Artists/{artist}/Kemono {link}" + process = subprocess.run(command, shell=True, check=True, capture_output=False, encoding="utf-8") + print(f'Command \'{process.args}\' exited with {process.returncode} code') + +galleryDl(db_link, db_artist)