我正在试图刮的页面是https://agco.maps.arcgis.com/apps/webappviewer/index.html?id=bef894bc0876448fba26333f1de8d370。从这个页面,我试图获得5种类型的数据,分配器的名称,地址,邮政(例如N4K 5N6),状态和公告日期
我的问题是我不知道如何进入这一页。我知道我想要的数据在“_description”下,但我不知道table元素是什么以及类。当我在页面上搜索时,我得到了这些令人尴尬的方框部分,这让我想,这一点是分开的吗?或者是表元素和头被打包到很远的地方,这就是我找不到它们的原因?任何关于我如何进入这一页的想法都会很好
from bs4 import BeautifulSoup
import requests
import pandas as pd
url = https://agco.maps.arcgis.com/apps/webappviewer/index.html?id=bef894bc0876448fba26333f1de8d370
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
cannabis = soup.find( Would put the header here)
输出:
相关问题 更多 >
编程相关推荐