Module: Feedzirra::FeedEntryUtilities
- Defined in:
- lib/content_scrapper/feedzirra.rb
Instance Method Summary collapse
-
#scrap_content(scrapper = ContentScrapper.default) ⇒ Object
Scrap the content based on the URL and the existing content and return it.
-
#scrap_content!(scrapper = ContentScrapper.default) ⇒ Object
Scrap the content or use the existing one and change the feed entry.
Instance Method Details
#scrap_content(scrapper = ContentScrapper.default) ⇒ Object
Scrap the content based on the URL and the existing content and return it
8 9 10 |
# File 'lib/content_scrapper/feedzirra.rb', line 8 def scrap_content(scrapper = ContentScrapper.default) scrapper.scrap_content(self.url) || self.content.to_s end |
#scrap_content!(scrapper = ContentScrapper.default) ⇒ Object
Scrap the content or use the existing one and change the feed entry
13 14 15 |
# File 'lib/content_scrapper/feedzirra.rb', line 13 def scrap_content!(scrapper = ContentScrapper.default) content = scrap_content(scrapper) end |