lib/regexp_crawler/crawler.rb in flyerhzm-regexp_crawler-0.8.0 vs lib/regexp_crawler/crawler.rb in flyerhzm-regexp_crawler-0.8.1
- old
+ new
@@ -54,10 +54,10 @@
page = page.compact.first if page.is_a? Array
continue_uri = continue_uri(uri, page)
@pages << continue_uri unless @captured_pages.include?(continue_uri) or @pages.include?(continue_uri)
end
end
- if @need_parse.nil? or @need_parse.call(uri, response_body)
+ if @need_parse.nil? or @need_parse.call(uri.to_i, response_body)
md = @capture_regexp.match(response_body)
if md
captures = md.captures
result = {}
captures.each_index do |i|