diff --git a/call.py b/call.py index 07aa93f..c63c7be 100755 --- a/call.py +++ b/call.py @@ -1,9 +1,17 @@ #!/usr/bin/env python3 import json, random, textwrap +import yaml +from urllib.request import urlopen -with open('terms.json', 'r') as f: - terms = json.load(f) + +# with open('terms.json', 'r') as f: +# terms = json.load(f) +# with open('terms.yaml', 'r') as f: +# terms = yaml.load(f) + +f = urlopen("https://pad.xpub.nl/p/XPUB-promo-terms/export/txt") +terms = yaml.load(f) def make_pub(): actor = random.choice(terms['actor'])