dump to local yaml

master
Michael Murtaugh 1 year ago
parent 17eab3ce6e
commit 7ffe2113e3

@ -12,6 +12,8 @@ from urllib.request import urlopen
f = urlopen("https://pad.xpub.nl/p/XPUB-promo-terms/export/txt")
terms = yaml.load(f)
with open("terms.yaml", "w") as f:
yaml.dump(terms, f)
def make_pub():
actor = random.choice(terms['actor'])

Loading…
Cancel
Save