function analiz_parsed_proxy($response, $info, $request)
{
    global $proxy_list;
    if ($info['http_code'] < 200 || $info['http_code'] > 300) {
        SuperCurl::add_debug_msg("->t\tFAILED\t" . $info['http_code'] . "\t" . $info['total_time'] . "\t" . $info['url']);
    } else {
        $temp = get_proxy_from_html($response);
        SuperCurl::add_debug_msg("->t\tSUCCESS\t" . $info['http_code'] . "\t" . $info['total_time'] . "\t" . $info['url']);
        if (is_array($temp)) {
            //SuperCurl::add_debug_msg("->t\tWE GOT\t".count($temp)." PROXY");
            $proxy_list = array_merge($proxy_list, $temp);
        }
    }
}
Beispiel #2
0
function get_the_links($id, $response)
{
    global $parse_links;
    global $parse_list;
    $htmlObj = phpQuery::newDocument($response);
    foreach ($htmlObj['a'] as $element) {
        $link = pq($element)->attr('href');
        $parse_links[] = $link;
        SuperCurl::add_debug_msg("->FOUND LINK");
    }
    //var_dump($parse_links[$id]['links']);
    //echo htmlspecialchars($response);
}
 public function __construct($message = "", $code = 0)
 {
     SuperCurl::add_debug_msg($message);
     parent::__construct($message, $code);
 }