From 9c00182b2eeb20000855396c44aab42227a51af6 Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 3 Jul 2024 12:05:54 -0400 Subject: yep fix --- scraper/yep.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scraper/yep.php') 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"] ); -- cgit v1.2.3 From feb0a6dfc3e8557dd0e87c5b21625baf335dba7b Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 3 Jul 2024 12:17:09 -0400 Subject: yep ssl fix --- scraper/yep.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scraper/yep.php') diff --git a/scraper/yep.php b/scraper/yep.php index 4a5d411..3d99181 100644 --- a/scraper/yep.php +++ b/scraper/yep.php @@ -255,6 +255,15 @@ class yep{ // use http2 curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); + // set ciphers + // aes_128_gcm_sha_256,chacha20_poly1305_sha_256,aes_256_gcm_sha_384,ecdhe_ecdsa_aes_128_gcm_sha_256,ecdhe_rsa_aes_128_gcm_sha_256,ecdhe_ecdsa_chacha20_poly1305_sha_256,ecdhe_rsa_chacha20_poly1305_sha_256,ecdhe_ecdsa_aes_256_gcm_sha_384,ecdhe_rsa_aes_256_gcm_sha_384,ecdhe_ecdsa_aes_256_sha,ecdhe_ecdsa_aes_128_sha,ecdhe_rsa_aes_128_sha,ecdhe_rsa_aes_256_sha,rsa_aes_128_gcm_sha_256,rsa_aes_256_gcm_sha_384,rsa_aes_128_sha,rsa_aes_256_sha + /* + curl_setopt( + $curlproc, + CURLOPT_SSL_CIPHER_LIST, + "aes_128_gcm_sha_256,chacha20_poly1305_sha_256,aes_256_gcm_sha_384,ecdhe_ecdsa_aes_128_gcm_sha_256,ecdhe_rsa_aes_128_gcm_sha_256,ecdhe_ecdsa_chacha20_poly1305_sha_256,ecdhe_rsa_chacha20_poly1305_sha_256,ecdhe_ecdsa_aes_256_gcm_sha_384,ecdhe_rsa_aes_256_gcm_sha_384,ecdhe_ecdsa_aes_256_sha,ecdhe_ecdsa_aes_128_sha,ecdhe_rsa_aes_128_sha,ecdhe_rsa_aes_256_sha,rsa_aes_128_gcm_sha_256,rsa_aes_256_gcm_sha_384,rsa_aes_128_sha,rsa_aes_256_sha" + );*/ + curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding curl_setopt($curlproc, CURLOPT_HTTPHEADER, ["User-Agent: " . config::USER_AGENT, -- cgit v1.2.3 From 53d40c6e4e86fdd8ed86d5fb043b6c93d9c7b3ea Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 3 Jul 2024 12:18:01 -0400 Subject: yep ssl fix 2 fucknfwuefhuiew --- scraper/yep.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scraper/yep.php') diff --git a/scraper/yep.php b/scraper/yep.php index 3d99181..bfe347f 100644 --- a/scraper/yep.php +++ b/scraper/yep.php @@ -256,13 +256,11 @@ class yep{ curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); // set ciphers - // aes_128_gcm_sha_256,chacha20_poly1305_sha_256,aes_256_gcm_sha_384,ecdhe_ecdsa_aes_128_gcm_sha_256,ecdhe_rsa_aes_128_gcm_sha_256,ecdhe_ecdsa_chacha20_poly1305_sha_256,ecdhe_rsa_chacha20_poly1305_sha_256,ecdhe_ecdsa_aes_256_gcm_sha_384,ecdhe_rsa_aes_256_gcm_sha_384,ecdhe_ecdsa_aes_256_sha,ecdhe_ecdsa_aes_128_sha,ecdhe_rsa_aes_128_sha,ecdhe_rsa_aes_256_sha,rsa_aes_128_gcm_sha_256,rsa_aes_256_gcm_sha_384,rsa_aes_128_sha,rsa_aes_256_sha - /* curl_setopt( $curlproc, CURLOPT_SSL_CIPHER_LIST, "aes_128_gcm_sha_256,chacha20_poly1305_sha_256,aes_256_gcm_sha_384,ecdhe_ecdsa_aes_128_gcm_sha_256,ecdhe_rsa_aes_128_gcm_sha_256,ecdhe_ecdsa_chacha20_poly1305_sha_256,ecdhe_rsa_chacha20_poly1305_sha_256,ecdhe_ecdsa_aes_256_gcm_sha_384,ecdhe_rsa_aes_256_gcm_sha_384,ecdhe_ecdsa_aes_256_sha,ecdhe_ecdsa_aes_128_sha,ecdhe_rsa_aes_128_sha,ecdhe_rsa_aes_256_sha,rsa_aes_128_gcm_sha_256,rsa_aes_256_gcm_sha_384,rsa_aes_128_sha,rsa_aes_256_sha" - );*/ + ); curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding curl_setopt($curlproc, CURLOPT_HTTPHEADER, -- cgit v1.2.3