Module: Text

Included in:
Curation::Page
Defined in:
lib/curation/finders/text.rb

Constant Summary collapse

BLACKLIST =
[
  'head', 'script', 'style', 'iframe', 'nav', 'noscript', 'header', 'footer', 'aside',
  '.navigation', '.top-menu-container', '.navbar', '.navbar-header', '.breadcrumb',
  '#breadcrumbs', '[typeof="v:Breadcrumb"]', '.skip-link', '.search', '.search-form',
  '.categories', '.post-categories', '.datas', '.post-datas', '.twitter-media',
  '.instagram-media', '.widget', '.related-post-tags', '.social-list', '.top-scroll',
  '.comments', '.signature', '.publicite', '.footer', '.Footer', '.footer-copyright',
  '[itemprop*="author"]', '[style*="display:none;"]', '[style*="display:none"]',
  '[style*="display: none;"]', '[style*="display: none"]', '[aria-hidden="true"]'
]

Instance Method Summary collapse

Instance Method Details

#textObject



14
15
16
17
# File 'lib/curation/finders/text.rb', line 14

def text
  # require 'byebug'; byebug
  @text ||= find_text
end