+

# Python编程快速上手（五）百度搜索+

• requests
• webbrowser
• bs4

## 几个要点

### BeautifulSoup4-Warning

UserWarning: No parser was explicitly specified, so I’m using the best available HTML parser for this system (“html5lib”). 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.

To get rid of this warning, change this:

to this:

markup_type=markup_type))

soup = bs4.BeautifulSoup(res.text,"html.parser")

## 代码

Love U 3000
• Through WeChat
• Through Alipay
0%