Traceback (most recent call last):
File "/home/good_inc/program.py", line 6, in <module>
print g.doc.select("//title").text()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-11: ordinal not in range(128)
[Finished in 1.1s with exit code 1]
[shell_cmd: python -u "/home/good_inc/program.py"]
[dir: /home/good_inc]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]
CTraceback (most recent call last):
File "/home/good_inc/program.py", line 8, in <module>
p = poplib.POP3(mail_server)
File "/usr/lib/python2.7/poplib.py", line 83, in __init__
self.sock = socket.create_connection((host, port), timeout)
File "/usr/lib/python2.7/socket.py", line 562, in create_connection
sock.connect(sa)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
KeyboardInterrupt
import poplib
username = "*****************"
password = "************"
mail_server = "mail.google.com"
p = poplib.POP3(mail_server)
p.user(username)
p.pass_(password)
for msg_id in p.list[1]:
print msg_id
p.quit()
</code >