摘要: 作业1 代码 爬虫代码 url='https://quote.eastmoney.com/center/gridlist.html#hs_a_board' driver.get(url) driver.implicitly_wait(5) try: #关闭广告 close_ad=driver.fin 阅读全文
posted @ 2025-11-30 23:09 XYC_666 阅读(7) 评论(0) 推荐(0)
摘要: 作业1 代码 展开 import os import random import threading import time from queue import Queue from urllib.parse import urljoin import requests from bs4 impor 阅读全文
posted @ 2025-11-19 17:26 XYC_666 阅读(20) 评论(0) 推荐(0)
摘要: 作业1 相关代码和结果 from bs4 import BeautifulSoup from bs4 import UnicodeDammit import urllib.request import sqlite3 class WeatherDB: def openDB(self): self.c 阅读全文
posted @ 2025-11-05 23:34 XYC_666 阅读(30) 评论(0) 推荐(0)
摘要: 作业1 核心代码与运行结果 url='http://www.shanghairanking.cn/rankings/bcur/2020' response = urllib.request.urlopen(url) if response.getcode() == 200: html = respo 阅读全文
posted @ 2025-10-16 23:58 XYC_666 阅读(99) 评论(0) 推荐(0)