我正在为这个项目使用visualstudioide(它有python3.x)。我尝试用pip
(对于web scraper)安装requests
和lxml
,我成功地安装了它,导入了它,并写了这样一行:
__page = requests.get("www.google.com")
然后我试着去做
__page.content()
但很显然,这并没有定义。这不是唯一一个这样做的软件包。它也发生在lxml
,beautifulsoup
。你知道吗
有什么办法吗?你知道吗
图片:https://imgur.com/a/wVerZ
Tags:
__page.text()
看起来不像函数,它看起来像属性,即__page.text
。你知道吗从http://docs.python-requests.org/en/master/api/#requests.Response.text:
相关问题 更多 >
编程相关推荐