用BeautifulSoup 解析html和xml字符串
实例:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from bs4 import BeautifulSoup
import re
#待分析字符串
html_doc =
The Dormouse's story
The Dormouse's story
Once upon a
用BeautifulSoup 解析html和xml字符串
实例:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from bs4 import BeautifulSoup
import re
#待分析字符串
html_doc =
The Dormouse's story
The Dormouse's story