Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?
Гродненский Форум
25 Июль 2025, 08:53:26
Новости, реклама:
   Главная   Новости Гродно Помощь Игры Календарь Войти Регистрация   Меню
Страниц  :   Вниз
  Печать  
Автор Тема: Re: Google search API не работает  (Прочитано 2517 раз)
0 Пользователей и 1 Гость смотрят эту тему.
coolasm
Почетный гродненец
*****

Репутация: +102/-3
Offline Offline

Пол: Мужской
Сообщений: 1458


//---------//

Просмотр профиля
« Ответ #0 : 12 Январь 2013, 06:46:44 »

Крокозябры - это коды спецсимволов (всякие там ':' '/' '<' '>' )
Откройте свой запрос в браузере, а результат вставьте в  JSON-валидатор (к примеру http://jsonlint.com/)
для http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=belarus
получилось:
Код:
{
    "responseData": {
        "results": [
            {
                "GsearchResultClass": "GwebSearch",
                "unescapedUrl": "http://www.belarus.by/",
                "url": "http://www.belarus.by/",
                "visibleUrl": "www.belarus.by",
                "cacheUrl": "http://www.google.com/search?q=cache:ziPBga_n060J:www.belarus.by",
                "title": "Official website, <b>Belarus</b> | <b>Belarus</b>.by",
                "titleNoFormatting": "Official website, Belarus | Belarus.by",
                "content": "Start here for your complete introduction to the republic of <b>Belarus</b>, a fascinating   country with a rich cultural heritage and extraordinary landscapes."
            },
            {
                "GsearchResultClass": "GwebSearch",
                "unescapedUrl": "http://en.wikipedia.org/wiki/Belarus",
                "url": "http://en.wikipedia.org/wiki/Belarus",
                "visibleUrl": "en.wikipedia.org",
                "cacheUrl": "http://www.google.com/search?q=cache:eBZO_Um_t40J:en.wikipedia.org",
                "title": "<b>Belarus</b> - Wikipedia, the free encyclopedia",
                "titleNoFormatting": "Belarus - Wikipedia, the free encyclopedia",
                "content": "<b>Belarus</b> officially the Republic of <b>Belarus</b>, is a landlocked country in Eastern   Europe bordered by Russia to the northeast, Ukraine to the south, Poland to the <b>...</b>"
            },
            {
                "GsearchResultClass": "GwebSearch",
                "unescapedUrl": "https://www.cia.gov/library/publications/the-world-factbook/geos/bo.html",
                "url": "https://www.cia.gov/library/publications/the-world-factbook/geos/bo.html",
                "visibleUrl": "www.cia.gov",
                "cacheUrl": "http://www.google.com/search?q=cache:uIpglDuYo40J:www.cia.gov",
                "title": "<b>Belarus</b> - CIA - The World Factbook",
                "titleNoFormatting": "Belarus - CIA - The World Factbook",
                "content": "Dec 19, 2012 <b>...</b> Features a map and brief descriptions of geography, economy, government, and   people."
            },
            {
                "GsearchResultClass": "GwebSearch",
                "unescapedUrl": "http://travel.state.gov/travel/cis_pa_tw/cis/cis_1033.html",
                "url": "http://travel.state.gov/travel/cis_pa_tw/cis/cis_1033.html",
                "visibleUrl": "travel.state.gov",
                "cacheUrl": "http://www.google.com/search?q=cache:Qjo5qeihttAJ:travel.state.gov",
                "title": "<b>Belarus</b>",
                "titleNoFormatting": "Belarus",
                "content": "Offers travel information including Background Notes, entry and exit requirements  , safety and security, crime, health and transport."
            }
        ],
        "cursor": {
            "resultCount": "21,400,000",
            "pages": [
                {
                    "start": "0",
                    "label": 1
                },
                {
                    "start": "4",
                    "label": 2
                },
                {
                    "start": "8",
                    "label": 3
                },
                {
                    "start": "12",
                    "label": 4
                },
                {
                    "start": "16",
                    "label": 5
                },
                {
                    "start": "20",
                    "label": 6
                },
                {
                    "start": "24",
                    "label": 7
                },
                {
                    "start": "28",
                    "label": 8
                }
            ],
            "estimatedResultCount": "21400000",
            "currentPageIndex": 0,
            "moreResultsUrl": "http://www.google.com/search?oe=utf8&ie=utf8&source=uds&start=0&hl=en&q=belarus",
            "searchResultTime": "0.14"
        }
    },
    "responseDetails": null,
    "responseStatus": 200
}
Записан

HTTP Error 404 - File or directory not found.
Страниц  :   Вверх
  Печать  
 
Перейти в:  

Войти
Войдите, чтобы добавить комментарий

Войдите через социальную сеть

Имя пользователя:
Пароль:
Продолжительность сессии (в минутах):
Запомнить:
Забыли пароль?

Контакт
Powered by MySQL Powered by PHP Мобильная версия
Powered by SMF 1.1.20
SMF © 2006-2025, Simple Machines
Simple Audio Video Embedder
| Sitemap
Valid XHTML 1.0! Valid CSS!
Страница сгенерирована за 0,219 секунд. Запросов: 20.