mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
unbreak twitter scraper
This commit is contained in:
parent
296912f866
commit
656059541d
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
defmodule Philomena.Scrapers.Twitter do
|
defmodule Philomena.Scrapers.Twitter do
|
||||||
@gt_regex ~r|document.cookie = decodeURIComponent\("gt=(\d+);|
|
@gt_regex ~r|document.cookie = decodeURIComponent\("gt=(\d+);|
|
||||||
@url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?|
|
@url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?|
|
||||||
@script_regex ~r|<script type="text/javascript" .*? src="(https://abs.twimg.com/responsive-web/web/main\.[\da-z]+\.js)">|
|
@script_regex ~r|<script type="text/javascript" .*? src="(https://abs.twimg.com/responsive-web/web_legacy/main\.[\da-z]+\.js)">|
|
||||||
@bearer_regex ~r|"(AAAAAAAAAAAAA[^"]*)"|
|
@bearer_regex ~r|"(AAAAAAAAAAAAA[^"]*)"|
|
||||||
|
|
||||||
@spec can_handle?(URI.t(), String.t()) :: true | false
|
@spec can_handle?(URI.t(), String.t()) :: true | false
|
||||||
|
|
Loading…
Reference in a new issue