使用reg ex和html抓取

时间:2014-03-02 01:24:25

标签: python python-2.7 beautifulsoup

在我的HTML代码中:

<html>
<body>
<p> simple text <br>
next text sample <br>
end of para .. </p>

</body>
</html>

使用python reg ex我想知道我该怎么做:

list= ['text' , 'sample' ]
#read each line and find the word from the list
# 
# then check whether the word is succeeded by a br tag
#
#

任何人都可以分享他们的建议吗?

0 个答案:

没有答案
相关问题