摘要: 作业① 要求:在中国气象网(http://www.weather.com.cn)给定城市集的7日天气预报,并保存在数据库。 输出信息: Gitee文件夹链接 查看代码 import urllib.request from bs4 import BeautifulSoup from bs4 impor 阅读全文
posted @ 2025-11-04 14:48 缪阿 阅读(4) 评论(0) 推荐(0)
摘要: 作业① 用requests和BeautifulSoup库方法定向爬取给定网址(http://www.shanghairanking.cn/rankings/bcur/2020 )的数据,屏幕打印爬取的大学排名信息。 2.心得体会 有些网站实际编码可能与声明编码不一致,所以用apparent_enco 阅读全文
posted @ 2025-10-26 15:19 缪阿 阅读(7) 评论(0) 推荐(0)