Howdy! Just wondering if i'm implementing this right. I need to follow redirects, and there doesnt seem to be an option toggle so I tried implementing it this way. It seems to work, but would like some feedback!
Spidr.site(@url, max_depth: 2, limit: 20) do |spider|
spider.every_redirect_page do |page|
spider.visit_hosts << URI.parse(page.location).host
spider.enqueue page.location
end
end
Howdy! Just wondering if i'm implementing this right. I need to follow redirects, and there doesnt seem to be an option toggle so I tried implementing it this way. It seems to work, but would like some feedback!