readme
This commit is contained in:
13
grab-all.py
Normal file
13
grab-all.py
Normal 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.")
|
||||
Reference in New Issue
Block a user