Help sought with textbetween and wildcards / whitespace trim?
Posted: 2024-05-29 20:01:30
I am attempting to work on a script to parse details from HTML pages using "textbetween" variables.
E.g, if I want to scrape the following for value "84"
The script below works, but I am having to lay out a lot of HTML and white space to scrape the data that I am looking for.
For simplicity is it posssible to tell AMC to trim out white space / line breaks beforehand? Alternatively, could I use wildcards instead of complete strings?
E.g something like
Thank you!
E.g, if I want to scrape the following for value "84"
Code: Select all
<button slot="Score" data-Manager="overlayOpen:click" theme="transparent">
<theme="medium">84%</info>
Code: Select all
value := textbetween(page, '<button slot="Score" data-Manager="overlayOpen:click" theme="transparent">'+ #13#10 +' <theme="medium">' , '%<');
E.g something like
Code: Select all
value := textbetween(page, '<button slot="Score" [*anything*] theme="medium">' , '%<');