I need to make a script what showing me all the characters in between the keywords.
Let’s say, I download html page and then read it (it has 33985 characters in there). I need to print everything between "<td class="ml_subject"><a href="?tab=inbox" and "</a></td>" which is dozen letters away.
I can find the start point by using:
if "<td class="ml_subject"><a href="?tab=inbox" in html:
print "Success"
but what’s then ?
Use the
find()method:-> http://docs.python.org/library/stdtypes.html#str.find
This would look something like this: