basic nokogiri script implemented