From 4e70124f3681e7135fc79318e6c19a59c4045caf Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 8 Jul 2020 00:26:58 -0400 Subject: [PATCH] fix twitter scraper --- lib/philomena/scrapers/twitter.ex | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/philomena/scrapers/twitter.ex b/lib/philomena/scrapers/twitter.ex index 36e8ea5b..631cda2e 100644 --- a/lib/philomena/scrapers/twitter.ex +++ b/lib/philomena/scrapers/twitter.ex @@ -1,5 +1,5 @@ defmodule Philomena.Scrapers.Twitter do - @gt_regex ~r|gt=(\d+?);| + @gt_regex ~r|document.cookie = decodeURIComponent\("gt=(\d+);| @url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?| @script_regex ~r|