Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: lib/scrapes/crawler.rb
- ===================================================================
- --- lib/scrapes/crawler.rb (revision 253)
- +++ lib/scrapes/crawler.rb (working copy)
- @@ -83,7 +83,7 @@
- case res
- when Net::HTTPRedirection
- - #@session.base_uris[-1] = @session.absolute_uri(res['location'])
- + @session.base_uris[-1] = @session.absolute_uri(res['location'])
- res = fetch(res['location'], {}, headers)
- end
- Index: lib/scrapes/hpricot.rb
- ===================================================================
- --- lib/scrapes/hpricot.rb (revision 253)
- +++ lib/scrapes/hpricot.rb (working copy)
- @@ -67,7 +67,7 @@
- result = if block
- block.call(child)
- else
- - child.content
- + content(child)
- end
- value << result if result
- value
Add Comment
Please, Sign In to add comment