![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python_爬虫
码农-Python小高
这个作者很懒,什么都没留下…
展开
-
python selenium防反爬
python selenium 防止被检测原创 2022-12-01 16:00:35 · 1289 阅读 · 1 评论 -
python 使用selenium webdriver报错 DeprecationWarning: use options instead of chrome_options
原来代码from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_argument('--disable-dev-shm-usage')options.add_argument('--no-sandbox')options.add_argument('--headless')options.add_argument('--ignore-certificate-errors')driver = we原创 2020-10-30 08:59:55 · 2031 阅读 · 0 评论 -
python 判断文件夹是否存在,不存在创建
import osp = './files'if not os.path.exists(p): os.makedirs(p)原创 2020-05-28 11:24:14 · 610 阅读 · 0 评论 -
获取西刺代理IP构建代理池
# -*- coding: utf-8 -*-# @Time: 2020/1/2 19:03# @Author: gaoyanshun# @ Site:# @File: 获取西刺代理# @ Explain:# 当前维护者: gaoyanshun# 修改记录: 时间,用户名,修改内容。 最上面一条为最近记录# 环境:Python2.7,requests,bs4,re,impor...原创 2020-01-02 19:06:44 · 190 阅读 · 0 评论 -
安装Scrapy遇到ERROR: Command “‘E:\PYcharm\Python code\scrapy_test\Scripts\python.exe‘(安装scrapy教程-详细)
前言:用pip install Scripy 安装,运行在pycharm中,结果报错,费了老大劲,解决了,分享出来,让各位遇到该问题pythoner少走点弯路,不代表可以解决所有人的问题。Collecting TwistedUsing cached https://files.pythonhosted.org/packages/79/59/035de19362320e632301ed7bbde...原创 2019-07-17 20:43:13 · 1287 阅读 · 1 评论