Slate extractor: strip newsletter signup form
This commit is contained in:
parent
d62d12262d
commit
6e0271bf4b
|
@ -20,7 +20,8 @@ defmodule Frenzy.Pipeline.Extractor.Slate do
|
|||
defp get_article_content(html_tree) do
|
||||
case Floki.find(html_tree, ".article__content") do
|
||||
[el] ->
|
||||
article_content = Floki.filter_out(el, ".slate-ad, .in-article-recirc, .social-share")
|
||||
article_content =
|
||||
Floki.filter_out(el, ".slate-ad, .in-article-recirc, .social-share, .newsletter-signup")
|
||||
|
||||
image = Floki.find(html_tree, ".article__top-image img")
|
||||
|
||||
|
|
Loading…
Reference in New Issue