摘要: Python实战:selenium模拟浏览器运行,获取软科网站2023中国大学排名 在爬取一些加密的网页时,可以使用selenium模拟浏览器运行,再从网页中提取想要的数据。 使用的库 本文使用到的 Python 库有:selenium、bs4、pandas 使用selenium解决网页的反爬 使用 阅读全文
posted @ 2024-01-20 20:11 stormhou 阅读(202) 评论(1) 推荐(1)
摘要: 通过python爬取上海10年天气数据 爬取网页 http://tianqi.2345.com/wea_history/58362.htm 爬取上海2011-2020年天气数据 url = "http://tianqi.2345.com/Pc/GetHistory" headers = { "Use 阅读全文
posted @ 2022-05-19 21:26 stormhou 阅读(243) 评论(0) 推荐(0)