springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 13:21:46
173
我试图从https://eresearch.fidelity.com/eresearch/goto/markets_扇区/landing.jhtml刮取数据。目标是从美国市场获得最新的11个行业的业绩数据。但我不能看到的表现,直到我点击每个扇区。换句话说,每个扇区背后都嵌入了一个链接。我想要一个元组列表,每个元组应该对应于一个扇区,并且应该包含以下数据:扇区名称、扇区移动的数量、扇区的市值、扇区的市场权重以及指向该扇区的保真度页面的链接。
下面是我到目前为止的代码。我被卡住了,我想要得到每个部门的内容的部分。我的代码根本不返回任何东西。请救命!提前谢谢。
import requests
from bs4 import BeautifulSoup
url = "https://eresearch.fidelity.com/eresearch/goto/markets_sectors/landing.jhtml"
req = requests.get(url)
soup = BeautifulSoup(req.content, "html.parser")
links_list = list()
next_page_link = soup.find_all("a", class_="heading1")
for link in next_page_link:
next_page = "https://eresearch.fidelity.com"+link.get("href")
links_list.append(next_page)
for item in links_list:
soup2 = BeautifulSoup(requests.get(item).content,'html.parser')
print(soup2)
顺晟科技:
尝试:
打印:
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11