我想第一次做网页抓取一些网站,是在JS创建的。但我不知道如何找到一个关于开发人员工具的表格。 这是我的网站:https://www.money.pl/gielda/gpw/akcje/
我的代码是:
import requests
from bs4 import BeautifulSoup as soup
my_url = "https://www.money.pl/gielda/gpw/akcje/"
headers = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36")
page = requests.get(my_url, headers=headers, timeout=10)
page_soup = soup(page.text, 'lxml')
试试这个:
输出:
下面是
.csv
文件中的内容:相关问题 更多 >
编程相关推荐