Attempting to do a fully functional ruby web crawler in sinatra