BeautifulSoup 知识小点
序众所周知,requests+BeautifulSoup是编写简单爬虫的利器。 同时BeautifulSoup提供了很多的方式去定位元素,通常我们定位一个元素的方式有多种,xpath定位,css定位,id定位等等。知识碎片string和get_text()的区别html_doc = """<html><head><title>The Dormouse's story</title></head>