За последние 24 часа нас посетили 17905 программистов и 1745 роботов. Сейчас ищут 1063 программиста ...

Где купить рабочие списки анонимных прокси?

Тема в разделе "Прочее", создана пользователем joost, 24 фев 2010.

  1. joost

    joost Guest

    Где купить рабочие списки анонимных прокси?
     
  2. joost

    joost Guest

    Посоветуйте!
     
  3. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    тебе зачем?
     
  4. Padaboo

    Padaboo Старожил
    Команда форума Модератор

    С нами с:
    26 окт 2009
    Сообщения:
    5.242
    Симпатии:
    1
    брутить чёто собрался)
     
  5. joost

    joost Guest

    парсить выдачу Яндекса нужно
     
  6. nimistar

    nimistar Активный пользователь

    С нами с:
    30 май 2007
    Сообщения:
    919
    Симпатии:
    0
  7. joost

    joost Guest

    надо более 1к раз в сутки
     
  8. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
  9. joost

    joost Guest

    купил 50 прокси по первой ссылке

    PHP:
    1. function file_get_content($url)
    2. {
    3. $ch = curl_init();
    4. curl_setopt($ch, CURLOPT_URL, $url);
    5. $header = array("Referer: [url=HTTP://Yandex.Ru]HTTP://Yandex.Ru[/url]", "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)");
    6. curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
    7. curl_setopt($ch, CURLOPT_TIMEOUT, 3);
    8. curl_setopt($ch, CURLOPT_PROXY, "'".$proxy[array_rand($proxy = file("proxy.db"))]."'");
    9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    10. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    11. $str = curl_exec($ch);
    12. return $str;
    13. }
    14. print $content = file_get_content("http://yandex.ru/yandsearch?text=ноутбук");
    в $content пусто
    в чем проблема?
     
  10. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    мы тут, блин, телепаты?
    ===
    у меня машина не заводится? не подскажешь в чем проблема?
     
  11. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    посмотри curl_error() или как там
     
  12. joost

    joost Guest

    Couldn't resolve proxy ''121.14.158.75'
    и так по всем прокси
    хреновые прокси?
    посоветуйте, где купить робочие прокси!
    какие имено прокси нужны (анонимные, соксы) ?
     
  13. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    руки из жопы и не понимание процесса

    Код (Text):
    1.  
    2. hosting(root):/usr/www/www.php.ru/template#>telnet 121.14.158.75 80
    3. Trying 121.14.158.75...
    4. Connected to 121.14.158.75.
    5. Escape character is '^]'.
    6. GET / HTTP/1.0
    7. host: ya.ru
    8.  
    9. HTTP/1.0 200 OK
    10. Server: nginx
    11. Date: Tue, 23 Feb 2010 03:50:24 GMT
    12. Content-Type: text/html; charset=utf-8
    13. Content-Length: 4962
    14. Last-Modified: Tue, 12 Jan 2010 15:29:06 GMT
    15. Accept-Ranges: bytes
    16. Age: 131872
    17. X-Cache: HIT from gameimg.baofeng.com
    18. Via: 1.0 gameimg.baofeng.com:80 (squid/2.6.STABLE22)
    19. Connection: close
    20.  
    21. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><title>Яндекс</title><link rel="shortcut icon"href="http://img.yandex.net/i/favicon.ico"><base target="_top">
    22. [...]
    23. Connection closed by foreign host.
     
  14. joost

    joost Guest

    ну так что не так в
    PHP:
    1.  
    2.  function file_get_content($url)
    3.  {
    4.  $ch = curl_init();
    5.  curl_setopt($ch, CURLOPT_URL, $url);
    6.  $header = array("Referer: [url=HTTP://Yandex.Ru]HTTP://Yandex.Ru[/url]", "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)");
    7.  curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
    8.  curl_setopt($ch, CURLOPT_TIMEOUT, 3);
    9.  curl_setopt($ch, CURLOPT_PROXY, "'".$proxy[array_rand($proxy = file("proxy.db"))]."'");
    10.  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    11.  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    12.  $str = curl_exec($ch);
    13.  curl_close($ch);
    14.  return $str;
    15.  }
    16.  print $content = file_get_content("http://yandex.ru/yandsearch?text=ноутбук");
    ?
     
  15. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    покажи что туда передается?
     
  16. 440Hz

    440Hz Старожил
    Команда форума Модератор

    С нами с:
    21 дек 2012
    Сообщения:
    8.003
    Симпатии:
    1
    Адрес:
    Оттуда
    PHP:
    1.  
    2. <?php
    3.  
    4.  
    5. function my_file_get_content($url) {
    6.     $ch = curl_init();
    7.     curl_setopt($ch, CURLOPT_URL, $url);
    8.     $header = array("Referer: [url=HTTP://Yandex.Ru]HTTP://Yandex.Ru[/url]", "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)");
    9.     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
    10.     curl_setopt($ch, CURLOPT_TIMEOUT, 30);
    11.     curl_setopt($ch, CURLOPT_PROXY, '121.14.158.75:80');
    12.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    13.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    14.     $str = curl_exec($ch);
    15.  
    16.     if(curl_errno($ch)) {
    17.         echo 'Curl error: ' . curl_error($ch);
    18.         exit();
    19.     }
    20.  
    21.     curl_close($ch);
    22.     return $str;
    23. }
    24.  
    25. print $content = my_file_get_content("http://yandex.ru/yandsearch?text=440hz");
    26.  
    27. ?>
    28.  
    Код (Text):
    1.  
    2. tornado(root):/home/440hz/test#>php proxy.php
    3. <!DOCTYPE html>
    4. <html id="nojs">
    5. <head>
    6. <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    7. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    8. <title>
    9. 440hz&nbsp;&mdash;
    10. [...]
     
  17. joost

    joost Guest

    проблему по коду решил!
    осталась проблема по списку прокси
    его покупал, но из 50 только 3-4 не забанены яндексом
    где взять (купить) нормальные прокси. Посоветуйте!