Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Index: lib/scrapes/crawler.rb
  2. ===================================================================
  3. --- lib/scrapes/crawler.rb (revision 253)
  4. +++ lib/scrapes/crawler.rb (working copy)
  5. @@ -83,7 +83,7 @@
  6.  
  7. case res
  8. when Net::HTTPRedirection
  9. - #@session.base_uris[-1] = @session.absolute_uri(res['location'])
  10. + @session.base_uris[-1] = @session.absolute_uri(res['location'])
  11. res = fetch(res['location'], {}, headers)
  12. end
  13.  
  14. Index: lib/scrapes/hpricot.rb
  15. ===================================================================
  16. --- lib/scrapes/hpricot.rb (revision 253)
  17. +++ lib/scrapes/hpricot.rb (working copy)
  18. @@ -67,7 +67,7 @@
  19. result = if block
  20. block.call(child)
  21. else
  22. - child.content
  23. + content(child)
  24. end
  25. value << result if result
  26. value
Add Comment
Please, Sign In to add comment