lib/scraper/movies.rb in ascraper-0.0.2 vs lib/scraper/movies.rb in ascraper-0.0.3
- old
+ new
@@ -34,10 +34,10 @@
result.images = movie.at_css('.image').search('a').map {|a| a['href']}.collect! {|x| x if %r{\Ahttps?:\/\/.+\.(?:jpe?g|png)\z}.match(x) }.compact.inspect
result.download_links = []
movie.css('.postarea p').each do |p|
- result.download_links << p
+ result.download_links << p.content
end
results << result
end
results
\ No newline at end of file