ruby - Logging GET request URL's with Mechanize -
is there way capture various requests when mechanize loads given url. example when watching console in firefox's dev tools see various requests loading pages' media, etc... i'm wondering if there way access , log same info using mechanize
you can enable logging:
require "logger" log = logger.new "log.txt" log.level = logger::debug require "mechanize" agent = mechanize.new{ |a| a.log = log }
Comments
Post a Comment