{"id":288487,"date":"2018-08-24T19:30:02","date_gmt":"2018-08-24T15:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=288487"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-08-24T15:30:02","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=288487","title":{"rendered":"Custom Google Search View"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/421173\/\" class=\"post__text post__text-html js-mediator-article\">\u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b \u043a\u0430\u0447\u0430\u0435\u0442\u0435 \u0438\u0437 \u0441\u0435\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/eu\/yi\/er\/euyierwjvwd4siuiqiyq5ssrsay.jpeg\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0431\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u044d\u0448\u0430, \u0442\u043e 600 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 (\u0432 gzip-e) \u0438 38 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441 \u043a\u044d\u0448\u0435\u043c, \u0442\u043e 70 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 \u0438 7-8 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<a name=\"habracut\"><\/a><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jy\/7t\/sj\/jy7tsjuo6xseap80oixslm_wscu.jpeg\"><\/p>\n<p>  \u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 600 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442? \u042d\u0442\u043e \u043e\u0431\u0430 \u0442\u043e\u043c\u0430 \u00ab\u0412\u043e\u0439\u043d\u044b \u0438 \u043c\u0438\u0440\u0430\u00bb \u041b\u044c\u0432\u0430 \u041d\u0438\u043a\u043e\u043b\u0430\u0435\u0432\u0438\u0447\u0430 \u0422\u043e\u043b\u0441\u0442\u043e\u0433\u043e \u0432 \u0442\u043e\u043c \u0436\u0435 gzip-e.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0442\u0440\u0430\u0434\u043d\u043e, \u0447\u0442\u043e Google Inc. \u043f\u0438\u0447\u043a\u0430\u0435\u0442 \u043d\u0430\u0441 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041f\u0440\u043e \u0441\u0430\u043c\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0430\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u2014 \u0442\u0443\u0442 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u0438 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u0437 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u0438 \u0447\u0430\u0441\u044b \u0440\u0430\u0431\u043e\u0442\u044b, \u0438 \u043a\u0430\u0440\u0442\u0430, \u0438 \u043e\u0442\u0437\u044b\u0432\u044b. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0433\u043e. \u0411\u0435\u0437 \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a, \u0431\u0435\u0437 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 <s>\u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0443 \u043c\u0430\u0439\u043e\u0440\u0443<\/s> \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430\u043c \u0442\u0432\u043e\u0438\u0445 \u0432\u0435\u0431 \u043a\u0430\u043c\u043f\u0435\u0439\u043d\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u043b\u043e \u043d\u0430 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430\u0445 \u0438 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0441 \u0432\u0438\u0432\u0438\u0441\u0435\u043a\u0446\u0438\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e, \u043d\u043e, \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0441\u0430\u043c Google \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 Search API \u0441 \u0432\u044b\u0434\u0430\u0447\u0435\u0439 \u0447\u0438\u0441\u0442\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 JSON \u0438\u043b\u0438 XML \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<p>  \u0412\u043e\u0442 \u0447\u0430\u0441\u0442\u044c JSON \u043e\u0442\u0432\u0435\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">JSON<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>{  \"kind\": \"customsearch#search\",  \"url\": {   \"type\": \"application\/json\",   \"template\": \"https:\/\/www.googleapis.com\/customsearch\/v1?q={searchTerms}&amp;num={count?}&amp;start={startIndex?}&amp;lr={language?}&amp;safe={safe?}&amp;cx={cx?}&amp;sort={sort?}&amp;filter={filter?}&amp;gl={gl?}&amp;cr={cr?}&amp;googlehost={googleHost?}&amp;c2coff={disableCnTwTranslation?}&amp;hq={hq?}&amp;hl={hl?}&amp;siteSearch={siteSearch?}&amp;siteSearchFilter={siteSearchFilter?}&amp;exactTerms={exactTerms?}&amp;excludeTerms={excludeTerms?}&amp;linkSite={linkSite?}&amp;orTerms={orTerms?}&amp;relatedSite={relatedSite?}&amp;dateRestrict={dateRestrict?}&amp;lowRange={lowRange?}&amp;highRange={highRange?}&amp;searchType={searchType}&amp;fileType={fileType?}&amp;rights={rights?}&amp;imgSize={imgSize?}&amp;imgType={imgType?}&amp;imgColorType={imgColorType?}&amp;imgDominantColor={imgDominantColor?}&amp;alt=json\"  },  \"queries\": {   \"request\": [    {     \"title\": \"Google Custom Search - habr\",     \"totalResults\": \"327000\",     \"searchTerms\": \"habr\",     \"count\": 10,     \"startIndex\": 1,     \"inputEncoding\": \"utf8\",     \"outputEncoding\": \"utf8\",     \"safe\": \"off\",     \"cx\": \"0019687164026253:oi9ssr7ci6e\"    }   ],   \"nextPage\": [    {     \"title\": \"Google Custom Search - habr\",     \"totalResults\": \"327000\",     \"searchTerms\": \"habr\",     \"count\": 10,     \"startIndex\": 11,     \"inputEncoding\": \"utf8\",     \"outputEncoding\": \"utf8\",     \"safe\": \"off\",     \"cx\": \"00156687164026253:oi9ssr7ci6e\"    }   ]  },  \"context\": {   \"title\": \"v-gornom.ru\"  },  \"searchInformation\": {   \"searchTime\": 0.531851,   \"formattedSearchTime\": \"0,53\",   \"totalResults\": \"327000\",   \"formattedTotalResults\": \"327 000\"  },  \"items\": [   {    \"kind\": \"customsearch#result\",    \"title\": \"\u041b\u0443\u0447\u0448\u0438\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438 \/ \u0425\u0430\u0431\u0440\",    \"htmlTitle\": \"\u041b\u0443\u0447\u0448\u0438\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438 \/ \\u003cb\\u003e\u0425\u0430\u0431\u0440\\u003c\/b\\u003e\",    \"link\": \"https:\/\/habr.com\/\",    \"displayLink\": \"habr.com\",    \"snippet\": \"\u0425\u0430\u0431\u0440 \u2013 \u0441\u0430\u043c\u043e\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0435 \u0432 \u0420\u0443\u043d\u0435\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043b\u044e\u0434\u0435\u0439, \u0437\u0430\u043d\u044f\u0442\u044b\u0445 \u0432 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438 \\n\u0432\u044b\u0441\u043e\u043a\u0438\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439. \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f, \u0441\u0432\u0435\u0436\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, ...\",    \"htmlSnippet\": \"\\u003cb\\u003e\u0425\u0430\u0431\u0440\\u003c\/b\\u003e \u2013 \u0441\u0430\u043c\u043e\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0435 \u0432 \u0420\u0443\u043d\u0435\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043b\u044e\u0434\u0435\u0439, \u0437\u0430\u043d\u044f\u0442\u044b\u0445 \u0432 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438 \\u003cbr\\u003e\\n\u0432\u044b\u0441\u043e\u043a\u0438\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439. \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f, \u0441\u0432\u0435\u0436\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f,\u00a0...\",    \"cacheId\": \"Wg3CgcvcAxUJ\",    \"formattedUrl\": \"https:\/\/habr.com\/\",    \"htmlFormattedUrl\": \"https:\/\/\\u003cb\\u003ehabr\\u003c\/b\\u003e.com\/\",    \"pagemap\": {     \"cse_thumbnail\": [      {       \"width\": \"311\",       \"height\": \"162\",       \"src\": \"https:\/\/encrypted-tbn3.gstatic.com\/images?q=tbn:ANd9GcT9MbmejtANdWSuXxH7pxKqWNFFRzPiTQuLmhWk5Tc5-Y-AgUgPrwEz0MV9\"      }     ],     \"metatags\": [      {       \"viewport\": \"width=1024\",       \"fb:app_id\": \"444736788986613\",       \"og:type\": \"website\",       \"fb:pages\": \"472597926099084\",       \"og:site_name\": \"\u0425\u0430\u0431\u0440\",       \"og:image\": \"https:\/\/habr.com\/images\/habr.png\",       \"og:image:width\": \"1200\",       \"og:image:height\": \"628\",       \"og:title\": \"\u041b\u0443\u0447\u0448\u0438\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438 \/ \u0425\u0430\u0431\u0440\",       \"og:description\": \"\u0425\u0430\u0431\u0440 \u2013 \u0441\u0430\u043c\u043e\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0435 \u0432 \u0420\u0443\u043d\u0435\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043b\u044e\u0434\u0435\u0439, \u0437\u0430\u043d\u044f\u0442\u044b\u0445 \u0432 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438 \u0432\u044b\u0441\u043e\u043a\u0438\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439. \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f, \u0441\u0432\u0435\u0436\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u043e \u2013 \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0425\u0430\u0431\u0440 \u0441\u0430\u043c\u044b\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c IT-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.\",       \"yandex-verification\": \"71593b225aeafc4e\",       \"referrer\": \"unsafe-url\",       \"pocket-site-verification\": \"ed24b2b9721edf0a282c5b4a3232c4\",       \"application-name\": \"\u0425\u0430\u0431\u0440\",       \"msapplication-tilecolor\": \"#77a2b6\",       \"theme-color\": \"#77a2b6\"      }     ],     \"cse_image\": [      {       \"src\": \"https:\/\/habr.com\/images\/habr.png\"      }     ]    }   },   {    \"kind\": \"customsearch#result\",    \"title\": \"\u0425\u0430\u0431\u0440 \u2014 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f\",    \"htmlTitle\": \"\\u003cb\\u003e\u0425\u0430\u0431\u0440\\u003c\/b\\u003e \u2014 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f\",    \"link\": \"https:\/\/ru.wikipedia.org\/wiki\/%D0%A5%D0%B0%D0%B1%D1%80\",    \"displayLink\": \"ru.wikipedia.org\",    \"snippet\": \"\u0425\u0430\u0431\u0440 (\u0431\u044b\u0432\u0448\u0438\u0439 \u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440) \u2014 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \\n\u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \\n\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 ...\",    \"htmlSnippet\": \"\\u003cb\\u003e\u0425\u0430\u0431\u0440\\u003c\/b\\u003e (\u0431\u044b\u0432\u0448\u0438\u0439 \\u003cb\\u003e\u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440\\u003c\/b\\u003e) \u2014 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \\u003cbr\\u003e\\n\u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \\u003cbr\\u003e\\n\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438\u00a0...\",    \"cacheId\": \"lB7MkUOxB7gJ\",    \"formattedUrl\": \"https:\/\/ru.wikipedia.org\/wiki\/\u0425\u0430\u0431\u0440\",    \"htmlFormattedUrl\": \"https:\/\/ru.wikipedia.org\/wiki\/\\u003cb\\u003e\u0425\u0430\u0431\u0440\\u003c\/b\\u003e\",    \"pagemap\": {     \"cse_thumbnail\": [      {       \"width\": \"220\",       \"height\": \"130\",       \"src\": \"https:\/\/encrypted-tbn3.gstatic.com\/images?q=tbn:ANd9GcQqJU0itnwYGZAd6Z5aMJO0izPfF7cab6pc40vm0sujOP2dSgkP-UB0Je1T\"      }     ],     \"metatags\": [      {       \"referrer\": \"origin\",       \"og:image\": \"https:\/\/upload.wikimedia.org\/wikipedia\/ru\/7\/7f\/Habrahabr_logo.png\"      }     ],     \"cse_image\": [      {       \"src\": \"https:\/\/upload.wikimedia.org\/wikipedia\/ru\/7\/7f\/Habrahabr_logo.png\"      }     ]    }   },<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c View \u0434\u043b\u044f Google Custom Search, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043c\u043e\u0449\u044c\u044e Google \u0438 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0435\u043d\u043d\u044b\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f Google Custom Search API \u0441\u043f\u0435\u0440\u0432\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0432\u043e\u0435\u0439 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"http:\/\/cse.google.com\">cse.google.com<\/a><br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0430\u0439\u0442, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a Custom Search API.<br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <a href=\"http:\/\/console.cloud.google.com\">console.cloud.google.com<\/a> (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0430\u0439\u0442\u0430\u0445 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c), \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u0432 \u043b\u0435\u0432\u043e\u043c \u0431\u043e\u043a\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u00abAPI \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b\u00bb -&gt; \u00ab\u041f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u00bb -&gt; \u00ab\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c API \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b\u00bb, \u0438\u0449\u0435\u043c \u0442\u0430\u043c \u00abCustom Search API\u00bb, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u00ab\u041a\u043b\u044e\u0447 API\u00bb. \u041c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 IP, \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e.<\/p>\n<p>  \u0412\u0441\u0451. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b Google \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439:<br \/>  <a href=\"https:\/\/www.googleapis.com\/customsearch\/v1?key=\">www.googleapis.com\/customsearch\/v1?key=<\/a>{apikey}&amp;cx={sid}&amp;q=query<br \/>  \u0413\u0434\u0435 {apikey} \u2014 \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430, {sid} \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u0438\u0441\u043a\u0430.<br \/>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0438\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 JSON.<\/p>\n<p>  C \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/altrusl\/misc\/blob\/master\/index.php\">\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e php \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/a> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0435 View, \u0434\u0430\u0436\u0435 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u043a \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-t\/rp\/gc\/-trpgcehgjysblseffy7rfuewdc.jpeg\"><\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ky\/jg\/m1\/kyjgm17agmxt0jku-uskjqyhfgw.jpeg\"><\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430 \u2014 2\u041a\u0431, \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u2014 6\u041a\u0431.<\/p>\n<p>  \u0414\u0435\u043b\u043e \u0442\u0443\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0437\u043c\u0435. Google \u0432 JSON \u043e\u0442\u0432\u0435\u0442\u0435 \u0432\u044b\u0434\u0430\u0435\u0442 \u043a\u0443\u0447\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u043a\u0443\u0447\u0435\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <a href=\"https:\/\/developers.google.com\/custom-search\/json-api\/v1\/reference\/cse\/list\">\u0442\u0443\u0442<\/a>. \u041c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0430.<\/p>\n<p>  \u0415\u0441\u0442\u044c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438 \u043c\u0438\u043d\u0443\u0441\u044b \u2014 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 100 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0430 \u0434\u043e\u043b\u043b\u0430\u0440\u044b.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0437\u0430\u0445\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0448 php \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u0436\u0435 \u043d\u0430 Google \u0438 \u0442\u043e\u0436\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u2014 \u043d\u0430 <a href=\"https:\/\/appengine.google.com\">https:\/\/appengine.google.com<\/a>. \u041f\u0440\u0430\u0432\u0434\u0430, \u0442\u0443\u0442 \u0443\u0436\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u043f\u043e\u043c\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u2014 FTP, web file manager \u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u0430\u0439\u0442\u0430 \u0434\u043b\u044f Google \u0440\u0443\u0434\u0438\u043c\u0435\u043d\u0442\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c php \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0430\u043f\u043f\u043b\u0438\u043a\u0435\u0439\u0448\u043d, \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0435\u0433\u043e \u0432 \u044d\u043d\u0434\u0436\u0438\u043d \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u0432 \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043d\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f. \u041d\u0435 \u0437\u0440\u044f Google \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u2014 Google Certified User.<\/p><\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/421173\/\"> https:\/\/habr.com\/post\/421173\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/421173\/\" class=\"post__text post__text-html js-mediator-article\">\u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b \u043a\u0430\u0447\u0430\u0435\u0442\u0435 \u0438\u0437 \u0441\u0435\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/eu\/yi\/er\/euyierwjvwd4siuiqiyq5ssrsay.jpeg\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0431\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u044d\u0448\u0430, \u0442\u043e 600 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 (\u0432 gzip-e) \u0438 38 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441 \u043a\u044d\u0448\u0435\u043c, \u0442\u043e 70 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 \u0438 7-8 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-288487","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=288487"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288487\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}