Good Afternoon Macro Gods,
I appeal to you for help in resolving an issue I've been having for quite some time. In my macros I often have to scrape data from a webpage that isn't formatted for easy macro searching, as such I usually have a macro search through the source code for the webpage I'm trying to scrape data from for what I need. The webpage is written with tags that always surround the data I need, the tags are specific to each value that needs to be parsed. Currently I use notepad and the find function to select the text I need, then set it to variables for later use from there. Is there a better way to do this that can scrape this data out in the background without using Notepad? I'd imagine there is, however I can't find any macro commands that let me set text between two expected text strings.
Here's a sample of the source code I'm trying to scrape data from so you can get an idea:
InitData("MV_MOVEMODEM", "False", "L");
dataarrayOld["MV_MOVEMODEM"]=dataarray["MV_MOVEMODEM"]["val"];
InitData("MV_EMAIL", "", "C");
dataarrayOld["MV_EMAIL"]=dataarray["MV_EMAIL"]["val"];
InitData("MV_MOVEFAX", "False", "L");
dataarrayOld["MV_MOVEFAX"]=dataarray["MV_MOVEFAX"]["val"];
InitData("MV_MOVEREASON", "NH", "C");
dataarrayOld["MV_MOVEREASON"]=dataarray["MV_MOVEREASON"]["val"];
I need to capture the data between InitData("MV_MOVEREASON", " and ", "C"); for example.