GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual
environment, it may use a different parser and behave differently.
The code that caused this warning is on line 20 of the file d:/work/firstpro/爬虫学习/最基本爬虫.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.
正常运行了,但是提示了一大段信息,主要就是告诉你要指明 解析器 把 features=“lxml” 加上就可以
soup = BeautifulSoup(html,features="lxml")