example of reading text from a pad

master
Michael Murtaugh 5 years ago
parent 7fa349dff0
commit 52dd2f380c

@ -0,0 +1,11 @@
from urllib.request import urlopen
pad_url = "https://pad.xpub.nl/p/boring_old_tomato_sandwiches"
pad_text_url = pad_url + "/export/txt"
f = urlopen(pad_text_url)
pad_text = f.read().decode('utf-8')
print (pad_text)
Loading…
Cancel
Save