lib/nokaya/getter.rb in nokaya-0.0.4 vs lib/nokaya/getter.rb in nokaya-0.0.5
- old
+ new
@@ -33,9 +33,15 @@
refs = page.css('#imagelist .posts .post a')
links = []
refs.each {|l| links << "http:#{l['href']}"}
links
end
+ def get_flickr_album page
+ refs = page.css('.pc_img')
+ links = []
+ refs.each {|l| links << l['data-defer-src']}
+ links
+ end
def parse_page
Nokogiri::HTML get_page_content
end
private
def get_page_content