Forum: Ruby Checking if JS script exist on webpage

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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
This topic is locked and can not be replied to.