Forum: Ruby Checking if JS script exist on webpage

3d0281c16e03f71cc69e1fce607d023d?d=identicon&s=25 Warlock HandleR (warlock_handler)
on 2016-11-23 03:27
Hey Guys,
I want to create a ruby script to crawl a URL and check if a certain
script exists on the page.

I know I can crawl the URL with NOKOgiri or similar plugin. Would I be
able to check if the script exists without really firing the script.

use case - the JS script might or might not appear on certain pages of
the website. I want to check programmatically if that script is
available on the web page.

all help welcome, thnx guys
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.