Using Python, I am trying to extract from a html page data that changes constantly. I know that the data that I want is between a tag that looks like, 'abcd>' and a tag. EX: abcd>MyData... remaining html...
I can replace the html up to and including the abcd> tag by finding the unique occurrence of abcd> and using the replace method. That leaves me with MyData... remaining html. I can find the position of the tag in the remaining html.
Can anyone tell me how to replace the html starting with the tag along with the rest of the trailing html and assign 'MyData' to a variable?
In short, it looks like I can only remove characters from the left unless I know exactly what the data is that I want to extract. If I knew what the data was that I wanted to extract I wouldn't need to parse through the html to get it.
Thank you for your assistance.
Tom