2024-06-26 14:05:50 发布
网友
我试图在thishtml框架中获取表信息。我是说有列的表:
Year,Month,Oil Production m3,Gas Production Ksm3,...
使用beautifulSoup,这是目前为止我所尝试的:
beautifulSoup
但这只检索主页面信息,而不是页面框架。 当我通过框架链接更改url基时,它告诉我请求的页面已经过时。在
我认为你复制了错误的网址。当我使用下面的方法时,它起作用了。在
url_base = 'https://www.og.decc.gov.uk/information/wells/pprs/Well_production_onshore_oil_fields/onshore_oil_fields_by_well/0.htm'
注意:它是.../onshore_oil_fields_by_well/0.htm
.../onshore_oil_fields_by_well/0.htm
而不是.../onshore_oil_fields_by_well/0.html
.../onshore_oil_fields_by_well/0.html
我认为你复制了错误的网址。当我使用下面的方法时,它起作用了。在
注意:它是
.../onshore_oil_fields_by_well/0.htm
而不是
.../onshore_oil_fields_by_well/0.html
相关问题 更多 >
编程相关推荐