Visual studio Visual Studio Python的beatifulsoup
我正在为Python使用Visual studio Visual Studio Python的beatifulsoup,visual-studio,beautifulsoup,Visual Studio,Beautifulsoup,我正在为Python使用VisualStudio。我想安装Beatifulsoup用于web抓取Python 3.4作为解释器安装 我安装了BS,但不工作。您能帮助我在Visual Studio中使用Beatifulsoup吗 我执行了下面的代码,得到“没有名为bs4的模块”错误。谢谢 from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://www.pythonscr
VisualStudio
。我想安装Beatifulsoup用于web抓取<代码>Python 3.4作为解释器安装
我安装了BS,但不工作。您能帮助我在Visual Studio
中使用Beatifulsoup
吗
我执行了下面的代码,得到“没有名为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)
它已经在Continuum Anaconda平台上了 您可以从此处下载整个软件包: 选择要安装软件包的操作系统和计算机体系结构 将下载一个.exe文件 双击.exe文件以安装Anaconda,并按照屏幕上的说明进行操作
有了它,将安装BeautifulSoup4,这个包还包括许多其他非常有用的库。这个软件包太棒了,事实上,我非常推荐它。您可以在Visual studio终端上使用以下代码: pip安装程序4