01 2017 档案

摘要:from selenium import webdriverdriver = webdriver.Firefox(executable_path = "C:/Insert/Firefox/geckodriver.exe")driver.get("http://www.baidu.com")drive 阅读全文
posted @ 2017-01-12 22:08 有态度 阅读(637) 评论(0) 推荐(0)
摘要:from selenium import webdriverimport timeimport os path = os.path.dirname(__file__)# print(path)driver = webdriver.PhantomJS(executable_path='C:/Inser 阅读全文
posted @ 2017-01-11 21:36 有态度 阅读(226) 评论(0) 推荐(0)
摘要:原文链接: http://www.cnblogs.com/fnng/archive/2013/05/29/3106515.html 1.起因:在网页抓取的过程中,有些内容是通过js加载的,但是直接抓取是抓取不到的 2.selenium+python 映入眼帘 3.selenium 是一个web的自动 阅读全文
posted @ 2017-01-11 17:54 有态度 阅读(193) 评论(0) 推荐(0)
摘要:"Accept-Encoding": "gzip, deflate", 这条信息代表本地可以接收压缩格式的数据,而服务器在处理时就将大文件压缩再发回客户端,IE在接收完成后在本地对这个文件又进行了解压操作。出错的原因是因为你的程序没有解压这个文件,所以删掉这行就不会出现问题了 阅读全文
posted @ 2017-01-10 00:26 有态度 阅读(74157) 评论(3) 推荐(0)