Skip to content

Instantly share code, notes, and snippets.

@jagmitg
Created October 22, 2011 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagmitg/1306391 to your computer and use it in GitHub Desktop.
Save jagmitg/1306391 to your computer and use it in GitHub Desktop.
cinema_sites.rb
class CinemaSites
def self.get_cinema_links
doc = Nokogiri::XML(open('http://www.cineworld.co.uk/syndication/cinemas.xml'))
doc.xpath('//cinemas/name').map do |i|
{name: i['name'], url: i['url']}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment