Message77781
I have the same problem with that code:
(exchange USERNAME with your delicious username and PASSWORD with your
delicious password):
import urllib.request
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_password('del.icio.us API', 'api.del.icio.us',
USERNAME, PASSWORD)
opener = urllib.request.build_opener(auth_handler)
print(str(opener.open('https://api.del.icio.us/v1/posts/all').read(20),
"utf-8"))
And I don't use a proxy or anything like that. This makes python 3
completely unusable for me. And python 2.6 gives me what I want (the
content of that virtual file) without any extra data in front or in the
middle of the content. |
|
Date |
User |
Action |
Args |
2008-12-14 10:20:46 | ResulCetin | set | recipients:
+ ResulCetin, jhylton, exarkun, amaury.forgeotdarc, ajaksu2, dato |
2008-12-14 10:20:46 | ResulCetin | set | messageid: <1229250046.45.0.0104740698274.issue4631@psf.upfronthosting.co.za> |
2008-12-14 10:20:45 | ResulCetin | link | issue4631 messages |
2008-12-14 10:20:45 | ResulCetin | create | |
|