1. Вступайте в наш Telegram чат: https://t.me/a_parser Нас уже 2600+ и мы растем!
    Скрыть объявление

API - выдает success при завершении по превышению попыток

Тема в разделе "Техническая поддержка", создана пользователем sergeda, 16 ноя 2015.

  1. sergeda

    sergeda A-Parser Enterprise License
    A-Parser Enterprise

    Регистрация:
    22 май 2013
    Сообщения:
    193
    Симпатии:
    23
    Собственно вопрос почему так? По логике если задача не была завершена и закончилось количество попыток должен success 0 возваращаться а возвращается 1. Пример:
    Код:
    {"success":1,"data":{"resultString":"site:mlgcy.go2-tec.com: none\n","logs":[[0,1447662377,"Parser SE::Google::Compromised::0 parse query http://mlgcy.go2-tec.com"],[0,1447662377,"Wait for proxy"],[0,1447662377,"Use proxy http://188.138.88.123:60501"],[0,1447662417,"GET(1): http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site:mlgcy.go2-tec.com&num=10&gws_rd=ssl - 504 Gateway Timeout (0 KB)"],[0,1447662417,"Wait for proxy"],[0,1447662417,"Use proxy socks://178.218.208.238:41477"],[0,1447662440,"GET(2): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBE9pfLsY2qamsgUiGQDxp4NLgo_g7Qq3RCXvMYM0NZwvH_3a8wU - 503 Service Unavailable (2.82 KB)"],[0,1447662440,"Google show captcha"],[0,1447662440,"Parse response: 2"],[0,1447662440,"Wait for proxy"],[0,1447662440,"Use proxy socks://178.218.208.238:32958"],[0,1447662484,"GET(3): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&safe=active&q=CGMSBF4dfHEY_qamsgUiGQDxp4NLKn0HjT5b-uP01puGgEQkVJKCwkk&safe=active - 503 Service Unavailable (2.86 KB)"],[0,1447662484,"Google show captcha"],[0,1447662484,"Parse response: 2"],[0,1447662484,"Wait for proxy"],[0,1447662484,"Use proxy http://94.242.235.139:45373"],[0,1447662495,"GET(4): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBE1Pi1UYm6emsgUiGQDxp4NLKdbFPlbg52KPophY8N7eksp0j4Y - 503 Service Unavailable (2.81 KB)"],[0,1447662495,"Google show captcha"],[0,1447662495,"Parse response: 2"],[0,1447662495,"Wait for proxy"],[0,1447662495,"Use proxy socks://91.189.82.86:59379"],[0,1447662506,"GET(5): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBLJcNCkYpqemsgUiGQDxp4NLp--hK_bPk-Ymb9OlcOHeYnY4Dlc - 503 Service Unavailable (2.81 KB)"],[0,1447662506,"Google show captcha"],[0,1447662506,"Parse response: 2"],[0,1447662506,"Wait for proxy"],[0,1447662506,"Use proxy http://188.138.88.123:35912"],[0,1447662512,"GET(6): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBG2o4HsYraemsgUiGQDxp4NLgmrXb1CojkoNdP0sBMG_60-ZIuw - 503 Service Unavailable (2.82 KB)"],[0,1447662512,"Google show captcha"],[0,1447662512,"Parse response: 2"],[0,1447662512,"Wait for proxy"],[0,1447662512,"Use proxy socks://95.213.155.162:37044"],[0,1447662515,"GET(7): http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site:mlgcy.go2-tec.com&num=10&gws_rd=ssl - 596 Can't connect to proxy(Unknown error) (0 KB)"],[0,1447662515,"Wait for proxy"],[0,1447662515,"Use proxy http://176.99.5.248:39216"],[0,1447662539,"GET(8): http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site:mlgcy.go2-tec.com&num=10&gws_rd=ssl - 596 Can't connect to proxy(Unknown error) (0 KB)"],[0,1447662539,"Wait for proxy"],[0,1447662539,"Use proxy http://176.99.5.248:36699"],[0,1447662548,"GET(9): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBLwTzXkY0KemsgUiGQDxp4NL_WQn-br5ilOzGvS4ggZjjuEw2Kk - 503 Service Unavailable (2.82 KB)"],[0,1447662548,"Google show captcha"],[0,1447662548,"Parse response: 2"],[0,1447662548,"Wait for proxy"],[0,1447662548,"Use proxy http://185.60.135.180:52105"],[0,1447662558,"GET(10): http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/search?ie=utf-8&oe=utf-8&hl=en&q=site%3Amlgcy.go2-tec.com&num=10&gws_rd=ssl&q=CGMSBLDRMIYY2aemsgUiGQDxp4NLVqgOcViR59SCik8w5-OK4IGPijI - 503 Service Unavailable (2.81 KB)"],[0,1447662558,"Google show captcha"],[0,1447662558,"Parse response: 2"],[3,1447662558,0],[0,1447662558,"Thread complete work"]]}}
     
    #1 sergeda, 16 ноя 2015
    Последнее редактирование модератором: 16 ноя 2015
  2. Forbidden

    Forbidden Administrator
    Команда форума A-Parser Enterprise

    Регистрация:
    9 мар 2013
    Сообщения:
    3.337
    Симпатии:
    1.795
    в данном контексте success означает успешный ответ самого API, успешность парсинга определяется переменной $info.success которую можно вывести в формате результата
     
  3. sergeda

    sergeda A-Parser Enterprise License
    A-Parser Enterprise

    Регистрация:
    22 май 2013
    Сообщения:
    193
    Симпатии:
    23
    Подскажите пожалуйста как можно формат результата для api менять. Где почитать?
     
  4. Forbidden

    Forbidden Administrator
    Команда форума A-Parser Enterprise

    Регистрация:
    9 мар 2013
    Сообщения:
    3.337
    Симпатии:
    1.795

Поделиться этой страницей