example of reading text from a pad
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…
Reference in New Issue