gpt4 book ai didi

python - Web 抓取 html 加油站

转载 作者:太空宇宙 更新时间:2023-11-04 09:46:35 26 4
gpt4 key购买 nike

<分区>

鉴于此链接 http://www.nj.gov/treasury/administration/statewide-support/motor-fuel-locations.shtml我想抓取每个加油站及其信息

import requests
from bs4 import BeautifulSoup
page=requests.get("http://www.nj.gov/treasury/administration/statewide-support/motor-fuel-locations.shtml")
soup=BeautifulSoup(page.content,'html.parser')
for x in soup.find_all('p'):
print x

提取正确数据的下一步是什么?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com