摘要: 作业1 要求: 熟练掌握 Selenium 查找HTML元素、爬取Ajax网页数据、等待HTML元素等内容。 使用Selenium框架+ MySQL数据库存储技术路线爬取“沪深A股”、“上证A股”、“深证A股”3个板块的股票数据信息。 候选网站:东方财富网:http://quote.eastmone 阅读全文
posted @ 2025-12-10 10:59 ygtr3ce 阅读(1) 评论(0) 推荐(0)
摘要: 作业1 相关代码与结果 代码 单线程代码如下: 点击查看代码 import requests from bs4 import BeautifulSoup import os import time import urllib.parse class WeatherImageDownloader: d 阅读全文
posted @ 2025-11-25 22:58 ygtr3ce 阅读(13) 评论(0) 推荐(0)
摘要: 作业1 相关代码和结果 点击查看代码 from bs4 import BeautifulSoup from bs4 import UnicodeDammit import urllib.request import sqlite3 class WeatherDatabase: def __init_ 阅读全文
posted @ 2025-11-11 21:12 ygtr3ce 阅读(8) 评论(0) 推荐(0)
摘要: 102302115方朴第一次作业 任务1 代码及运行结果 import requests from bs4 import BeautifulSoup target_url = "http://www.shanghairanking.cn/rankings/bcur/2020" res = reque 阅读全文
posted @ 2025-10-27 19:44 ygtr3ce 阅读(11) 评论(0) 推荐(0)