diff --git a/lib/philomena/http.ex b/lib/philomena/http.ex index fa9ac7d8..9767995f 100644 --- a/lib/philomena/http.ex +++ b/lib/philomena/http.ex @@ -33,7 +33,7 @@ defmodule Philomena.Http do {Tesla.Middleware.Headers, [ {"User-Agent", - "Mozilla/5.0 (X11; Philomena; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/76.0"} + "Mozilla/5.0 (X11; Philomena; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"} | headers ]} ], diff --git a/lib/philomena/scrapers/twitter.ex b/lib/philomena/scrapers/twitter.ex index 07ecafa7..dde225ef 100644 --- a/lib/philomena/scrapers/twitter.ex +++ b/lib/philomena/scrapers/twitter.ex @@ -1,7 +1,7 @@ defmodule Philomena.Scrapers.Twitter do - @gt_regex ~r|document.cookie = decodeURIComponent\("gt=(\d+);| + @gt_regex ~r|decodeURIComponent\("gt=(\d+);| @url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?| - @script_regex ~r|