0
我对Python使用Visual Studio
。我想安装Beatifulsoup网络报废。安装为解释器的Python 3.4
。Visual Studio Python的美化工具
我安装了BS,但不起作用。请帮助我,以便在Visual Studio
中使用Beatifulsoup
。
我在代码下面执行,得到“no module named bs4”错误。谢谢
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.pythonscraping.com/pages/page1.html")
bsObj = BeautifulSoup(html.read())
print(bsObj.h1)
非常感谢。 –