This commit is contained in:
Leonetienne
2022-01-30 03:49:51 +01:00
parent 2373ce0416
commit e7698c52c9
3 changed files with 30 additions and 1 deletions

13
grab-all.py Normal file
View File

@@ -0,0 +1,13 @@
import yaml
import os
with open("artists.yaml", "r") as yamlfile:
try:
config = yaml.safe_load(yamlfile)
for artist in config:
print(f"\033[92mGrabbing artist '{artist}'")
os.system(f"python3 grab.py '{artist}'")
except yaml.YAMLError as exc:
print("You fucked up the yaml format.")