Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
<gnufied> look ruby Net::* libs on which tools like scrubyt are built aren't very reliable. So, you must always rescue whenever you are doing content scrapping with them. <gnufied> you should be ready to handle Timeout::Error and other all sort of exceptions * christian2 (n=christia@6-162.vpn.RWTH-Aachen.DE) has joined #backgroundrb <gnufied> begin; scrap_the_damn_page(); rescue Timeout::Error; puts "Boy, i am bored!"; rescue; puts "Boy, that was weird!"; end
Pasted July 06, 200810:43AM EDT
Embed