从仙境下载美味汤桌

2024-06-28 11:11:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我想通过以下链接查看天气历史和观测表:

https://www.wunderground.com/history/airport/HDY/2011/1/1/CustomHistory.html?dayend=31&monthend=12&yearend=2011&req_city=&req_state=&req_statename=&reqdb.zip=&reqdb.magic=&reqdb.wmo=

这是我目前掌握的代码:

import pandas as pd
from bs4 import BeautifulSoup
import requests

 link = 'https://www.wunderground.com/history/airport/HDY/2011/1/1/CustomHistory.html?dayend=31&monthend=12&yearend=2011&req_city=&req_state=&req_statename=&reqdb.zip=&reqdb.magic=&reqdb.wmo='

 resp = requests.get(link)

 c = resp.text

 soup = BeautifulSoup(c)

我想知道下一步是什么来访问页面底部的表信息(假设这是一个很好的网站格式,允许这种情况发生)。在

谢谢你


Tags: httpsimportcomhtmlwwwreqhistorywunderground