Skip to content

Instantly share code, notes, and snippets.

@almaron
Created May 9, 2012 17:11
Show Gist options
  • Save almaron/2646817 to your computer and use it in GitHub Desktop.
Save almaron/2646817 to your computer and use it in GitHub Desktop.
url = "http://napodiume.ru/profile/"+model[:id]
puts "Соединяемся с профилем №#{model[:id]}"
doc = Nokogiri::HTML(open(url))
name = (doc.at_css("h1").text.split "|")[0]
@model = Model.new
@model.name = name.strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment