class GetPocketSend::Parser

Public Class Methods

get_page_content(remote_url) click to toggle source

private

# File lib/get_pocket_send/parser.rb, line 29
def get_page_content remote_url
  Nokogiri::HTML(open(remote_url))
end
sites_and_selectors() click to toggle source

TODO: Should be grapping users file or somthing else..

# File lib/get_pocket_send/parser.rb, line 34
def sites_and_selectors
  [
     ['ITC', 'http://itc.ua/', '.articles header', 'h1.post-title a', 'h1.post-title a'] #,
    # ['livejournal', 'http://valerii.livejournal.com/feed', '.b-lenta-item', '.b-lenta-item-title a', '.b-lenta-item-title a']
  ]
end