Class: Hola
- Inherits:
-
Object
- Object
- Hola
- Defined in:
- lib/hola_ing.rb
Class Method Summary collapse
Class Method Details
.hi ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/hola_ing.rb', line 2 def self.hi require 'nokogiri' require 'open-uri' doc = Nokogiri::HTML(URI.open('https://www.set.or.th/set/companyhighlight.do?symbol=DELTA')) u = doc.css('tr td[5]')[0] t = doc.css('div h3')[0] return t.content + ' : ' + u.content end |