Scan HTML content for URLs and cURL them

Avatar

Avatar

szymons55769873

Avatar

szymons55769873

szymons55769873

25-02-2019

Hi

I'm working on a solution that would scan planned deliveries for URLs (in their HTML Source) and cURL those URLs and check their HTTP Response.

Goal is to avoid sending campaigns with broken URLs.

Now, I have the 2nd bit (cURLing) complete, however I cannot figure out how to obtain all the URLs (and img src URLs) for the cURL activity.

I've tried RegEx to check the [content/html/source] in nms:delivery and was working but it's not a recommended solution (safety wise) and for more complicated HTMLs it was malfunctioning.

How can I achieve this with javascript? Anybody else built similar solution?

View Entire Topic

Avatar

Avatar

szymons55769873

Avatar

szymons55769873

szymons55769873

25-02-2019

My delivery is in status "Being edited" and has links in the tab you're showing, however still cannot find it in the TrackingUrl schema. Any idea why it isn't appearing?