0
我是Beautifulsoup的新手,似乎遇到了问题。我写的代码对我而言是正确的,但输出是空的。它没有显示任何价值。BeautifulSoup不返回任何值
import requests
from bs4 import BeautifulSoup
url = requests.get("https://www.nseindia.com/")
soup = BeautifulSoup(url.content, "html.parser")
nifty = soup.find_all("span", {"id": "lastPriceNIFTY"})
for x in nifty:
print x.text
我不能安装dryscrape。每当我尝试通过点对点安装时,它都会给我带来错误。你能帮我吗? 'qmake'不被识别为内部或外部命令, 可操作程序或批处理文件。 错误:[Errno 2]没有这样的文件或目录:'src/webkit_server' – Himakar
@Himakar你是windows还是linux? – MYGz
我在Windows 10上。 – Himakar