Here is another way of doing it.
- Saves the entire contents of the webpage to a local variable,
- Searches that local variable for everything between the keywords you specified and saves it to another local variable:
- Displays the local variable
local_keywords in a window
The macro itself is quite simple and will allow you to extract anything and everything between the two keywords you specify in the RegEx expression in the search action. You may still need to do some formatting to the results but this will get you started.
Assuming of course that the other (more eloquent) options don't work for you.
EDIT: I realized you were referring to the HTML code itself, so I had incorrectly typed the syntax you provided in the RegEx. I adjusted the macro and my original reply. This will work for you, but again, the results will be a long string of html code that will perhaps still need to be modified to be useful since right now it returns the following:
Get webpage contents between keywords.kmmacros (3.3 KB)