随笔分类 - 爬虫
摘要:settings.py文件中item管道是否打开,若多个管道是否配置。 若多个管道,是否每个管道类都return结果给下一管道。 爬虫文件是否yield item,是否实例化item类。 items.py属性名称和当前爬虫文件中抓到要存储数据的变量是否一致
阅读全文
摘要:从网上下了爬虫代码,提示: AttributeError: module ‘OpenSSL.SSL’ has no attribute ‘SSLv3_METHOD’ 网上有很多其他找不到模块的解决方法,尝试了都没有用。最后在bing搜索了下,找到了如下方法。是因为版本问题。 所以,删除新版,安装旧版
阅读全文
摘要:# -*- coding:utf-8 -*- import time import sys from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.suppo
阅读全文
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PAT
摘要:在使用selenium模块操作浏览器时,出现下面的错误提示: selenium.common.exceptions.WebDriverException:Message: ‘chromedriver’ executable needs to be in PATH. Please see https:
阅读全文
摘要:报错内容如下: 2022-07-06 14:39:32 [twisted] CRITICAL: Unhandled error in Deferred: Traceback (most recent call last): File "e:\myproject\venv\lib\site-packa
阅读全文
摘要:下载地址:[https://www.crummy.com/software/BeautifulSoup/#Download] 文档:[https://www.crummy.com/software/BeautifulSoup/bs4/doc/] 下载后解压,进入目录,执行: python setup
阅读全文