class Numa08Stalker::Twilog

Public Instance Methods

fetch() click to toggle source
# File lib/numa08_stalker.rb, line 7
def fetch
  ret = nil
  ::Net::HTTP.start 'twilog.org', 80 do |http|
    ret = http.get '/numa08/date-140823', 'User-Agent' => 'Chrome'
  end
  ret
end
texts(body) click to toggle source
# File lib/numa08_stalker.rb, line 15
def texts(body)
  doc = ::Nokogiri::HTML(body)
  doc.css('.tl-text').map(&:text)
end