slowly moving to python
This commit is contained in:
11
gallery-dl/gallery-dl.py
Normal file
11
gallery-dl/gallery-dl.py
Normal 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)
|
Reference in New Issue
Block a user