diff options
| author | lolcat <will@lolcat.ca> | 2025-03-20 21:05:36 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-03-20 21:05:36 -0400 |
| commit | 49ddd1a216d3d885081f28d57e32dc6abac3f7ff (patch) | |
| tree | e422681d61ea8c30d96f4f77cf6ce79f7590b015 /scraper/yandex.php | |
| parent | 81ca8eaddc35f7f86e63eed356ef3199f0c78f86 (diff) | |
duckduckgo images nsfw fix
Diffstat (limited to 'scraper/yandex.php')
| -rw-r--r-- | scraper/yandex.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scraper/yandex.php b/scraper/yandex.php index c3728e8..7af8781 100644 --- a/scraper/yandex.php +++ b/scraper/yandex.php @@ -37,7 +37,7 @@ class yandex{ "Accept-Encoding: gzip", "Accept-Language: en-US,en;q=0.5", "DNT: 1", - "Cookie: yp=1716337604.sp.family%3A{$nsfw}#1685406411.szm.1:1920x1080:1920x999", + "Cookie: yp=" . (time() - 4000033) . ".szm.1:1920x1080:876x1000#" . time() . ".sp.family:" . $nsfw, "Referer: https://yandex.com/images/search", "Connection: keep-alive", "Upgrade-Insecure-Requests: 1", @@ -668,7 +668,6 @@ class yandex{ foreach($json["blocks"] as $block){ $html .= $block["html"]; - // get next page if( isset($block["params"]["nextPageUrl"]) && |
