摘要: 作业1 熟练掌握 Selenium 查找HTML元素、爬取Ajax网页数据、等待HTML元素等内容。 使用Selenium框架+ MySQL数据库存储技术路线爬取“沪深A股”、“上证A股”、“深证A股”3个板块的股票数据信息。 作业代码 点击查看代码 import time import pymys 阅读全文
posted @ 2025-12-09 20:11 bishanbu 阅读(4) 评论(0) 推荐(0)
摘要: 作业1 指定一个网站,爬取这个网站中的所有的所有图片,例如中国气象网(http://www.weather.com.cn)。实现单线程和多线程的方式爬取 作业代码 `import requests from bs4 import BeautifulSoup import os import thre 阅读全文
posted @ 2025-11-25 20:36 bishanbu 阅读(9) 评论(0) 推荐(0)
摘要: 作业1 ## 代码以及相关图片 点击查看代码 import requests from bs4 import BeautifulSoup #原本想把第一个页面设为base_url,之后以此为根据跳转其他页面的(获取排名31之后的学校信息),可惜未能做到 base_url = 'http://www. 阅读全文
posted @ 2025-10-26 21:16 bishanbu 阅读(7) 评论(0) 推荐(0)