摘要: 数据准备 html_doc = """ <html><head><title>The Dormouse's story</title></head> <body> <p id="my_p" class="title"><b id="bbb" class="boldest">The Dormouse' 阅读全文
posted @ 2024-02-20 16:35 wellplayed 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 数据准备: # 导入模块 from bs4 import BeautifulSoup # 查询数据文本 html_doc = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title" id=' 阅读全文
posted @ 2024-02-20 16:30 wellplayed 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 数据准备: # 导入模块 from bs4 import BeautifulSoup # 查询数据文本 html_doc = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title" id=' 阅读全文
posted @ 2024-02-20 16:09 wellplayed 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装 pip install pymysql 第二步:使用方式 # 导入模块 import pymysql # 建立连接 conn = pymysql.connect( user='root', password="root", host='127.0.0.1', database='car 阅读全文
posted @ 2024-02-20 15:48 wellplayed 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 搭建并使用代理的步骤 1 搭建免费代理池 项目下载地址:https://github.com/jhao104/proxy_pool 2 使用虚拟环境安装依赖 3 修改配置文件中的redis配置 DB_CONN = 'redis://127.0.0.1:6379/2' 4 启动爬虫获取免费代理并存入r 阅读全文
posted @ 2024-02-20 15:14 wellplayed 阅读(29) 评论(0) 推荐(0) 编辑