lib/microby/h_feed.rb in microby-0.0.2 vs lib/microby/h_feed.rb in microby-0.0.3
- old
+ new
@@ -6,14 +6,12 @@
parse_html(html)
end
def parse_html(html)
doc = Nokogiri::HTML(open html)
- doc.css("*[class*=h-feed]").each do |feed|
- feed.css(".h-entry").each do |mf_entry|
- entry = HEntry.new(mf_entry)
- self.entries << entry
- end
+ doc.css(".h-entry").each do |mf_entry|
+ entry = HEntry.new(mf_entry)
+ self.entries << entry
end
end
end
end
\ No newline at end of file