![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
划船的使者
一直查资料的小白
展开
-
requests和selenium
requests获取cookiefrom fake_useragent import UserAgentimport requests def get_Cookies0(): ua = UserAgent().ie #随机获取请求头 headers = {'User-Agent':ua} url = 'https://www.lagou.com/jobs/list_python?' session = requests.session() session.p原创 2021-06-17 10:12:22 · 273 阅读 · 0 评论 -
ubuntu安装geckodriver 和 firefox
$ wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz$ tar -xvzf geckodriver*$ chmod +x geckodriver$ export PATH=$PATH:/path-to-extracted-file/....原创 2019-06-04 10:52:18 · 5043 阅读 · 1 评论