Allow root domain redirects
-
Alex Johnson
- Milestone order changed from 0 to 0
In case you or someone else is still facing this problem, the following solution can be applied.
Anemone.crawl("http://heise.de") do |anemone|
anemone.on_every_page do |page|if page.code==301 puts Anemone.crawl(page.redirect_to)This code is intended to give the logic behind the idea. on_every_page yields a page object that has the methods code and redirect_to. One can use them to crawl the redirected page accordingly.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.