我需要获取游戏列表并放入数据库,其中包含有关游戏的信息 有一个链接:https://store.steampowered.com/charts/topsales/global
*使用 beautifulsoup、requests、pandas
`import requests
from bs4 import BeautifulSoup
url = 'https://store.steampowered.com/charts/topselling/global'
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64;rv:126.0) Gecko/20100101 Firefox/126.0'}
response = requests.get(url, headers=headers)
soup = BeautifulSoup(response.text, 'html.parser')
soup
我需要使用此代码的信息不足;
游戏带有“tr”标签: 在此输入图片描述
看
curl https://store.steampowered.com/charts/topselling/global
的回复,可以看到那里的信息并不多。所以我假设蒸汽服务器给你一个更短的答案,因为它检测到你是一个机器人。我尝试使用 selenium 并且成功找到了元素