slowly moving to python

This commit is contained in:
2024-07-19 04:31:31 +02:00
parent 0fb9af9565
commit e8210cacdc

11
gallery-dl/gallery-dl.py Normal file
View File

@ -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)