• 2024-05-20CSS选择器
    一、CSS选择器二、CSS选择器实例按照class属性值取出网页信息fromscrapyimportSelectorhtml="""<htmllang="en"><head><metacharset="UTF-8"><title>bobby基本信息</title><scriptsrc="jquery
  • 2024-05-19Xpath使用教程
    一、安装Xpath解析库-scrapy中的selectorwin+r打开cmd,输入pipinstallwheel,先安装wheel库了才能安装.whl文件。安装lxml库到https://pypi.org/project/lxml/#files下载对应python版本的lxml库 切到lxml下载位置,安装lxml安装Twisted库到https://pypi.org/project/Twis
  • 2024-05-19BeautifulSoup库
    一、安装BeautifulSoup库 可以现在目前python安装了哪些包安装beautifulsoup二、beautifulsoup官网https://www.crummy.com/software/BeautifulSoup/bs4/doc/三、beautifulsoup的主要解析器 四、beautifulsoup的find函数查找html的titlefrombs4importBeautifulS