class KaopunSearch

Public Class Methods

get_delta() click to toggle source

search only delta

# File lib/kaopun_search.rb, line 10
def self.get_delta
    doc = Nokogiri::HTML(URI.open("https://www.set.or.th/set/companyprofile.do?symbol=DELTA"))
    doc.css("h3").each do |link|
        puts link.content
    end
end