Sha256: 55e2881b2129652cdbe40622270d0ee8232a77580d60d2e130434a0a7a50ab5d

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

#!/usr/bin/env ruby

require 'ronin/web/spider'

Ronin::Web::Spider.<%= entry_point_method -%>(<%= entry_point_argument -%>) do |agent|
  <%- unless @callbacks.empty? -%>
  <%-   @callbacks.each_with_index do |(method,arguments,yield_arg),index| -%>
  <%-     unless arguments.empty? -%>
  agent.<%= method -%>(<%= arguments.map(&:inspect).join(', ') -%>) do |<%= yield_arg -%>|
    # ...
  end
  <%-       else -%>
  agent.<%= method -%> do |<%= yield_arg -%>|
    # ...
  end
  <%-     end -%>
  <%-     unless index == (@callbacks.length-1) -%>

  <%-     end -%>
  <%-   end -%>
  <%- else -%>
  agent.ever_page do |page|
    puts page.url
  end
  <%- end -%>
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-web-1.0.0.beta1 data/new/spider.rb.erb