class RCrawler::CLI

Public Instance Methods

sc(url) click to toggle source
# File lib/rcrawler/cli.rb, line 12
def sc(url)
  filename = options.fetch("output", "#{Digest::SHA1.hexdigest(url)}.png")
  RCrawler.crawl do
    screenshot(url, filename)
  end
end