爬虫

百度贴吧爬虫
2019-10-04 15:54:33
0赞
0踩
541阅读
import requestsclass TiebaSpider: def __init__(self, name): self.name = name self.u

代理ip的设置
2019-10-04 15:53:20
0赞
0踩
429阅读
代理ip的设置方式有多种urllibfrom urllib.error import URLErrorfrom urllib.request import ProxyHandler, build_op

xpath 库详解
2019-10-04 15:52:06
0赞
0踩
401阅读
xpath入门python爬虫抓取网页内容,需要对html或xml结构的数据进行解析,如果用正则,单是写正则表达式就让很多望而生畏了。这个问题可以用正则表达式处理,于是,一个问题就变成了两个问题对于我

pyquery 库详解
2019-10-04 15:49:47
0赞
0踩
454阅读
安装pyquery官网地址pip install pyquery验证安装In [1]: import pyquery没报错即表示安装成功虽然 xpath 与 Beautiful Soup 已经很强大了

python 执行 js 代码
2019-10-04 15:47:32
0赞
0踩
645阅读
在抓取网站内容时,经常会遇到 js 加密的数据,看着那如同面条般的 js,就一阵发慌,二话不说直接用 selenium 暴力来处理,但效率毕竟太低了。如果 python 能执行 js 代码就简单多了有

Beautiful Soup库详解
2019-10-04 15:45:11
0赞
0踩
460阅读
安装pip install lxmlpip install beautifulsoup4验证安装In [1]: from bs4 import BeautifulSoupIn [2]: soup =

mac 搭建selenium与ChromeDriver环境
2019-10-04 15:43:55
0赞
0踩
540阅读
安装 selenium$ pip install selenium$ pip list | grep seleniumselenium 3.141.0安装 ChromeDriver到

python3与selenium教程第4节
2019-10-04 15:43:06
0赞
0踩
388阅读
前进和后退源码from selenium import webdriverimport timebrowser = webdriver.Chrome() # 声明浏览器browser.get('htt

python3与selenium教程第3节
2019-10-04 15:41:51
0赞
0踩
421阅读
切换Frame源码from selenium import webdriverimport timefrom selenium.common.exceptions import NoSuchEleme

python3与selenium教程第2节
2019-10-04 15:40:32
0赞
0踩
416阅读
动作链实现拖曳效果拖曳效果演示地址源码:from selenium import webdriverfrom selenium.webdriver import ActionChainsimport