diff options
author | lolcat <will@lolcat.ca> | 2024-07-03 12:05:54 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-07-03 12:05:54 -0400 |
commit | 9c00182b2eeb20000855396c44aab42227a51af6 (patch) | |
tree | 324a38685c1adc2527a2caefb94f2fcf2ebec0c2 /scraper | |
parent | 03ccd75f4b47fb6772199b5e534c7211e5e53bd0 (diff) |
yep fix
Diffstat (limited to 'scraper')
-rw-r--r-- | scraper/yep.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scraper/yep.php b/scraper/yep.php index c8f82f9..4a5d411 100644 --- a/scraper/yep.php +++ b/scraper/yep.php @@ -252,21 +252,23 @@ class yep{ curl_setopt($curlproc, CURLOPT_URL, $url); + // use http2 + curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); + curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding curl_setopt($curlproc, CURLOPT_HTTPHEADER, ["User-Agent: " . config::USER_AGENT, "Accept: */*", "Accept-Language: en-US,en;q=0.5", "Accept-Encoding: gzip, deflate, br, zstd", - "Connection: keep-alive", - "DNT: 1", - "Priority: u=1", - "Origin: https://yep.com", "Referer: https://yep.com/", + "Origin: https://yep.com", + "DNT: 1", "Connection: keep-alive", "Sec-Fetch-Dest: empty", "Sec-Fetch-Mode: cors", "Sec-Fetch-Site: same-site", + "Priority: u=4", "TE: trailers"] ); |