fetch list of git urls
diff --git a/update_urls.py b/update_urls.py new file mode 100644 index 0000000..cb1e6d8 --- /dev/null +++ b/update_urls.py
@@ -0,0 +1,12 @@ +import stripe, os +stripe.api_key = os.environ['STRIPE_TOKEN'] +checkouts = stripe.checkout.Session.list(limit=400) +git_urls = [] +for checkout in checkouts: + if checkout['payment_status'] == 'paid': + if 'github' in checkout['metadata']: + git_urls.append(checkout['metadata']['github']) + +git_urls.reverse() +for git_url in git_urls: + print(git_url)