From 6e0271bf4b141412da030365be14d06556409c67 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 19 Sep 2021 22:32:10 -0400 Subject: [PATCH] Slate extractor: strip newsletter signup form --- lib/frenzy/pipeline/extractor/slate.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/frenzy/pipeline/extractor/slate.ex b/lib/frenzy/pipeline/extractor/slate.ex index ba69e3f..ac22176 100644 --- a/lib/frenzy/pipeline/extractor/slate.ex +++ b/lib/frenzy/pipeline/extractor/slate.ex @@ -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")