From d0e0f3dc004deffd044b26787289beaf72805a81 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 23 Jun 2020 21:26:12 -0400 Subject: [PATCH] fix twitter scraper --- lib/philomena/scrapers/twitter.ex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/philomena/scrapers/twitter.ex b/lib/philomena/scrapers/twitter.ex index ff048c52..38eaeb64 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|document.cookie = decodeURIComponent\("gt=(\d+);| + @gt_regex ~r|gt=(\d+?);| @url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?| @script_regex ~r|