From 7ffe2113e399479e7c7b3a2e3094b49030529ac9 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 20 Dec 2022 14:50:29 +0100 Subject: [PATCH] dump to local yaml --- call.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/call.py b/call.py index c63c7be..6c28215 100755 --- a/call.py +++ b/call.py @@ -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'])