lib/nokaya/getter.rb in nokaya-0.0.3 vs lib/nokaya/getter.rb in nokaya-0.0.4

- old
+ new

@@ -27,9 +27,15 @@ page.xpath("//meta[@property='og:image']/@content").first end def get_favd page page.css('#largeImage')[0]['src'] end + def get_imgur_album page + refs = page.css('#imagelist .posts .post a') + links = [] + refs.each {|l| links << "http:#{l['href']}"} + links + end def parse_page Nokogiri::HTML get_page_content end private def get_page_content