摘要: 下载地址:http://www.crummy.com/software/BeautifulSoup/bs4/download/4.3/beautifulsoup4-4.3.2.tar.gz 说明:这个版本使用python 2.7比较好。 install: 解压缩,然后运行python setup.p 阅读全文
posted @ 2015-12-15 17:48 道以万计 阅读(4568) 评论(0) 推荐(0) 编辑
摘要: 使用basic auth 的3种方式 1. 设置header 2. 使用 HTTPBasicAuthHandler, 并install。执行认证一次,可以多次访问 3. 含有身份验证的网页,无论是 http 还是 https, 以下代码均适用。(如果还是报权限问题,有可能是 header 问题。) 阅读全文
posted @ 2015-12-15 15:30 道以万计 阅读(676) 评论(0) 推荐(0) 编辑