mirror of
				https://git.bakhai.co.in/FbIN/4Get.git
				synced 2025-11-04 12:01:31 +05:30 
			
		
		
		
	
					parent
					
						
							
								27b91e5124
							
						
					
				
			
			
				commit
				
					
						4b74db5af1
					
				
			
		
					 2 changed files with 10 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,7 @@ class anubis{
 | 
			
		|||
				"script"
 | 
			
		||||
			);
 | 
			
		||||
		
 | 
			
		||||
		if(count($script) === 0){
 | 
			
		||||
		if($script === false){
 | 
			
		||||
			
 | 
			
		||||
			throw new Exception("Failed to scrape anubis challenge data");
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -317,14 +317,19 @@ class marginalia{
 | 
			
		|||
		//
 | 
			
		||||
		// Bypass anubis check
 | 
			
		||||
		//
 | 
			
		||||
		/*
 | 
			
		||||
		if(($anubis_key = apcu_fetch("marginalia_cookie")) === false){
 | 
			
		||||
			
 | 
			
		||||
			try{
 | 
			
		||||
				$html =
 | 
			
		||||
					$this->get(
 | 
			
		||||
						$proxy,
 | 
			
		||||
						"https://old-search.marginalia.nu/"
 | 
			
		||||
						"https://old-search.marginalia.nu/search",
 | 
			
		||||
						[
 | 
			
		||||
							"query" => $search
 | 
			
		||||
						]
 | 
			
		||||
					);
 | 
			
		||||
					
 | 
			
		||||
			}catch(Exception $error){
 | 
			
		||||
				
 | 
			
		||||
				throw new Exception("Failed to get anubis challenge");
 | 
			
		||||
| 
						 | 
				
			
			@ -361,7 +366,7 @@ class marginalia{
 | 
			
		|||
			}
 | 
			
		||||
			
 | 
			
		||||
			apcu_store("marginalia_cookie", $anubis_key);
 | 
			
		||||
		}
 | 
			
		||||
		}*/
 | 
			
		||||
		
 | 
			
		||||
		if($get["npt"]){
 | 
			
		||||
			
 | 
			
		||||
| 
						 | 
				
			
			@ -377,7 +382,7 @@ class marginalia{
 | 
			
		|||
						$proxy,
 | 
			
		||||
						"https://old-search.marginalia.nu/search?" . $params,
 | 
			
		||||
						[],
 | 
			
		||||
						$anubis_key
 | 
			
		||||
						//$anubis_key
 | 
			
		||||
					);
 | 
			
		||||
			}catch(Exception $error){
 | 
			
		||||
				
 | 
			
		||||
| 
						 | 
				
			
			@ -408,7 +413,7 @@ class marginalia{
 | 
			
		|||
						$proxy,
 | 
			
		||||
						"https://old-search.marginalia.nu/search",
 | 
			
		||||
						$params,
 | 
			
		||||
						$anubis_key
 | 
			
		||||
						//$anubis_key
 | 
			
		||||
					);
 | 
			
		||||
			}catch(Exception $error){
 | 
			
		||||
				
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue