lib/libri/scraper.rb in libri-0.2.6 vs lib/libri/scraper.rb in libri-0.2.7
- old
+ new
@@ -44,10 +44,9 @@
book_info_hash = {
:title_by_author => info_section.css("div#productInfoOverview div.mb-m").text,
:blurbs_and_plot => info_section.css("div#productInfoOverview p").map(&:text).join("\n").strip,
:about_author => info_section.css("div#MeetTheAuthor div.text--medium").text.strip,
:excerpt => info_section.css("div.read-an-excerpt p").text,
- # info_section.xpath("//div[@class='read-an-excerpt']/p[not(@class) and position()<3]").map(&:text).join("\n"),
:availability => book_page.css("button#pdp-marketplace-btn").text.chomp,
:url => book.url
}.delete_if { |key, val| val.to_s.strip.empty? }
Libri::Book.create_from_collection(book_info_hash)