18 Jul 2022 08:51 AM
Hi - I wanted to check the url www.football.com.au and ensure the keyword of "football" from the meta content is there. I have been told to configure the post-execution script but Im not exactly sure on what code to put in there. Any examples would be great
Solved! Go to Solution.
18 Jul 2022 12:41 PM
Something like this should work:
var body = response.getResponseBody();
if (body.match(/<meta(.*football.*)>/g)) {
api.finish();
} else {
api.fail("Football not mentioned");
}