摘要: # -*- coding:utf-8 -*-import smtplibfrom email.mime.text import MIMETextclass sendmail: def __init__(self): self.mail_host="smtp.gmail.com" self.mail_... 阅读全文
posted @ 2011-01-19 17:31 邵珠庆 阅读(311) 评论(0) 推荐(0) 编辑
摘要: python标准库已包含对http的支持,通过很简单的办法就可以直接使用http代理服务器获取网页数据:import httplibhost,port = "192.168.131.54" , "8086" #http proxy server ip and porturl = "http://bl... 阅读全文
posted @ 2011-01-19 14:56 邵珠庆 阅读(1182) 评论(0) 推荐(0) 编辑