python爬虫beautifulsoup解析html方法
用BeautifulSoup 解析html和xml字符串 实例: #!/usr/bin/python # -*- coding: UTF-8 -*- from bs4 import BeautifulSoup import re #待分析字符串 html_doc = <html> <head> <title>The Dormouse's story</title> </head> <body> The Dormouse's story
用户评论