I have tried the below code for finding the underlined text in a html file, but it is not working.
f=open("jk.html","r")
while True:
for line in f.read():
for i in line.split():
j=i.find("<ul>")
k=i.find("</ul>")
for m in range(j, k):
print(m)
f.close()
Here is my HTML file:
<html>
<body>
<ul> hill </ul>
<p> millfhhf </p>
</body>
</html>
` is *unordered list*. `` is underlined text.
– janos Mar 22 '14 at 06:36