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

- old
+ new

@@ -21,11 +21,14 @@ open(img_link).read rescue abort Status.no_can_do end end - def get_link page + def get_basic page page.xpath("//meta[@property='og:image']/@content").first + end + def get_favd page + page.css('#largeImage')[0]['src'] end def parse_page Nokogiri::HTML get_page_content end private