This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am xfxf on github. | |
* I am xfxf (https://keybase.io/xfxf) on keybase. | |
* I have a public key ASDp1CSnTU0A4IGwEMI06bL00zON8MyE8sD_LoWYuHNmswo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
A script for downloading some podcasts. | |
Originally from https://gist.githubusercontent.com/janetriley/7762552/raw/9dcc46acb727757c4dd57d884484e04f5b664871/download_my_podcasts.py | |
Modified to allow fetching podcast via HTTP/HTTPS URI, bypass CloudFlare protection by detecting user agent, | |
removing custom tagging, and other fixes | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Script to test stripe webhooks in development. | |
# Should be run from a local machine (not inside of Docker). | |
# | |
# To use, create a requestb.in, ensure this is configured in Stripe (test account), | |
# and pass the key (not the URL) to this as an argument. Errors (HTTP error code) | |
# the first run are normal. | |
# | |
# If you're getting a requests SSL error, try upgrading requests: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
"""Read Pycon AU 2016 schedule, print out longest presenter & title names""" | |
import requests | |
SCHEDULE_JSON = 'https://2016.pycon-au.org/programme/schedule/json' | |
def get_presenter_title(schedule): | |
"""returns dict: {presenter: title}""" | |
result = requests.get(schedule, verify=False) |