mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-27 05:45:41 +00:00
user-agent blocking bypass
This commit is contained in:
parent
007c8f1cba
commit
23e0514820
@ -27,7 +27,13 @@ class SubitoBridge extends BridgeAbstract
|
|||||||
{
|
{
|
||||||
$url = $this->getInput('url');
|
$url = $this->getInput('url');
|
||||||
|
|
||||||
$dom = getSimpleHTMLDOMCached($url);
|
$headers = [
|
||||||
|
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/141.0',
|
||||||
|
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
|
||||||
|
'Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3'
|
||||||
|
];
|
||||||
|
|
||||||
|
$dom = getSimpleHTMLDOMCached($url, $CACHE_TIMEOUT, $headers);
|
||||||
|
|
||||||
$json = $dom->getElementById('__NEXT_DATA__');
|
$json = $dom->getElementById('__NEXT_DATA__');
|
||||||
$data = json_decode($json->innertext());
|
$data = json_decode($json->innertext());
|
||||||
|
Loading…
Reference in New Issue
Block a user