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
Something like this should work:
var body = response.getResponseBody();
if (body.match(/<meta(.*football.*)>/g)) {
api.finish();
} else {
api.fail(“Football not mentioned”);
}