Sha256: debe0c4143cd2fee6f7e2f2a4802f367ff5d871c120d41e798e2f1c64f52ea0e

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 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.every_page do |page|
    puts page.url
  end
  <%- end -%>
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ronin-web-2.0.0 data/new/spider.rb.erb
ronin-web-2.0.0.rc1 data/new/spider.rb.erb
ronin-web-1.0.2 data/new/spider.rb.erb
ronin-web-1.0.1 data/new/spider.rb.erb
ronin-web-1.0.0 data/new/spider.rb.erb
ronin-web-1.0.0.beta4 data/new/spider.rb.erb
ronin-web-1.0.0.beta3 data/new/spider.rb.erb
ronin-web-1.0.0.beta2 data/new/spider.rb.erb