摘要: 作业1 要求:熟练掌握 Selenium 查找HTML元素、爬取Ajax网页数据、等待HTML元素等内容。 使用Selenium框架+ MySQL数据库存储技术路线爬取“沪深A股”、“上证A股”、“深证A股”3个板块的股票数据信息。 候选网站:东方财富网:http://quote.eastmoney 阅读全文
posted @ 2025-11-30 00:51 helllo_x 阅读(15) 评论(0) 推荐(0)
摘要: 作业1 要求:指定一个网站,爬取这个网站中的所有的所有图片,例如:中国气象网(http://www.weather.com.cn)。实现单线程和多线程的方式爬取。 –务必控制总页数(学号尾数2位)、总下载的图片数量(尾数后3位)等限制爬取的措施。 输出信息: 将下载的Url信息在控制台输出,并将下载 阅读全文
posted @ 2025-11-19 19:47 helllo_x 阅读(21) 评论(0) 推荐(0)
摘要: 作业1 在中国气象网(http://www.weather.com.cn)给定城市集的7日天气预报,并保存在数据库。 (1)代码和运行结果 点击查看代码 from bs4 import BeautifulSoup from bs4 import UnicodeDammit import urllib 阅读全文
posted @ 2025-10-31 19:37 helllo_x 阅读(20) 评论(0) 推荐(0)
摘要: 作业1 用requests和BeautifulSoup库方法定向爬取给定网址(http://www.shanghairanking.cn/rankings/bcur/2020 )的数据,屏幕打印爬取的大学排名信息。 (1)代码和运行结果 点击查看代码 import urllib.request fr 阅读全文
posted @ 2025-10-25 15:54 helllo_x 阅读(24) 评论(0) 推荐(0)