{"id":457070,"date":"2025-04-23T15:00:41","date_gmt":"2025-04-23T15:00:41","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=457070"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-04-23T15:00:41","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=457070","title":{"rendered":"<span>\u041a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441\u0430\u0439\u0442 \u043d\u0430 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e \u0432 Google Indexing API \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/85d\/48b\/e3a\/85d48be3a5f8cbef2cf7d38fd0c72035.png\" width=\"1099\" height=\"554\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/85d\/48b\/e3a\/85d48be3a5f8cbef2cf7d38fd0c72035.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/85d\/48b\/e3a\/85d48be3a5f8cbef2cf7d38fd0c72035.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f URL \u0432 Google \u2014 \u0432\u0430\u0436\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0440\u0443\u043a\u0430\u0445 SEO-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430 \u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u043d\u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u2014 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c Google \u043c\u043e\u0436\u043d\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0b2\/07f\/424\/0b207f424a43a20554a276ff150bca85.png\" width=\"1295\" height=\"588\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/0b2\/07f\/424\/0b207f424a43a20554a276ff150bca85.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0b2\/07f\/424\/0b207f424a43a20554a276ff150bca85.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u0430\u0439\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a97\/031\/d7e\/a97031d7e565b042a760ec148881fceb.png\" width=\"833\" height=\"165\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/a97\/031\/d7e\/a97031d7e565b042a760ec148881fceb.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a97\/031\/d7e\/a97031d7e565b042a760ec148881fceb.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Indexing API \u043c\u043e\u0436\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python-\u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043d\u043e \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0438 \u0443\u0441\u0438\u043b\u0438\u043b \u0435\u0433\u043e.<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">import datetime from oauth2client.service_account import ServiceAccountCredentials import httplib2 import json import os from script_mysql import MySQLi from config import * import time  # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442 \u043c\u043e\u0434\u0443\u043b\u044f time  \"\"\" pip install google-api-python-client oauth2client pip install --upgrade oauth2client \"\"\"   def write_result(work_type, url, date):     if work_type == 'database':         db = MySQLi(host, user, password, database_home)         db.commit(\"INSERT INTO indexing_api (url, date) VALUES (%s, %s)\", url, datetime.date.today())     elif work_type == 'txt_file':         with open('result.txt', 'a', encoding='utf-8') as result_file:             string_write = f\"{url};{date}\\n\"             result_file.write(string_write)   SCOPES = [\"https:\/\/www.googleapis.com\/auth\/indexing\"]   def indexURL2(u, http):     ENDPOINT = \"https:\/\/indexing.googleapis.com\/v3\/urlNotifications:publish\"     content = {'url': u.strip(), 'type': \"URL_UPDATED\"}     json_ctn = json.dumps(content)     response, content = http.request(ENDPOINT, method=\"POST\", body=json_ctn)     result = json.loads(content.decode())      if \"error\" in result:         print(\"Error({} - {}): {}\".format(result[\"error\"][\"code\"], result[\"error\"][\"status\"],                                           result[\"error\"][\"message\"]))         return \"Error({} - {}): {}\".format(result[\"error\"][\"code\"], result[\"error\"][\"status\"],                                            result[\"error\"][\"message\"])     else:         print(\"URL \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e: {}\".format(result[\"urlNotificationMetadata\"][\"url\"]))          if \"latestUpdate\" in result[\"urlNotificationMetadata\"]:             latest_update = result[\"urlNotificationMetadata\"][\"latestUpdate\"]             print(\"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 URL:\")             print(\"- URL: {}\".format(latest_update.get(\"url\", \"N\/A\")))             print(\"- \u0422\u0438\u043f: {}\".format(latest_update.get(\"type\", \"N\/A\")))             print(\"- \u0412\u0440\u0435\u043c\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f: {}\".format(latest_update.get(\"notifyTime\", \"N\/A\")))         else:             print(\"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445, \u043d\u043e URL \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d.\")          return \"OK\"   count_urls = 0 for root, dirs, files in os.walk(\"json_keys\"):     for json_key_path_name in files:         json_key = 'json_keys\/' + json_key_path_name         credentials = ServiceAccountCredentials.from_json_keyfile_name(json_key, scopes=SCOPES)         http = credentials.authorize(httplib2.Http())          with open(\"urls.csv\", \"r\") as a_file:             urls = a_file.readlines()          with open(\"urls.csv\", \"w\") as new_file:             flag = False             request_google_api = ''             for url in urls:                 url_new = url.rstrip(\"\\n\")                 if flag:                     new_file.write(url)                 else:                     request_google_api = indexURL2(url_new, http)                     time.sleep(1)  # \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438                  if 'Error' in request_google_api:                     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 429, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c, \u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u044e\u0447 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043b \u043a\u0432\u043e\u0442\u0443                     if \"RESOURCE_EXHAUSTED\" in request_google_api:                         print(f\"\u041a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0430 {json_key}\")                     flag = True                     new_file.write(url)                     request_google_api = ''                 else:                     if not flag:                         write_result('txt_file', url_new, datetime.date.today())                         count_urls += 1  print(\"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e: \" + str(count_urls) + \" \u0448\u0442.\") <\/code><\/pre>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442?<\/h3>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u0440\u0430\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <code>.py<\/code> \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435. \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u043a\u0440\u0438\u043f\u0442, \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <code>urls.csv<\/code> \u0438 \u043f\u0430\u043f\u043a\u0443 <code>json_keys<\/code> .<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ol>\n<li>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a URL-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <code>urls.csv<\/code><\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 URL \u0432 Google Indexing API \u0441 \u0442\u0438\u043f\u043e\u043c <code>URL_UPDATED<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0444\u0430\u0439\u043b <code>result.txt<\/code><\/p>\n<\/li>\n<li>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u0432\u043e\u0442\u0435 \u2014 \u0435\u0441\u043b\u0438 \u043a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430, \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e JSON-\u043a\u043b\u044e\u0447\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <code>json_keys<\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <strong>\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/strong> \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442\u044c \u043b\u0438\u043c\u0438\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 URL \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u043d\u0435\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u2014 \u0435\u0435 \u043a\u043e\u0434, \u0441\u0442\u0430\u0442\u0443\u0441 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u0438\u043c\u044f \u043a\u043b\u044e\u0447\u0430, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u043a\u0432\u043e\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u0427\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f?<\/h3>\n<ul>\n<li>\n<p>Python 3+<\/p>\n<\/li>\n<li>\n<p>\u0410\u043a\u043a\u0430\u0443\u043d\u0442 Google Cloud \u0441 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c <strong>Indexing API<\/strong><\/p>\n<\/li>\n<li>\n<p>\u041e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 JSON-\u043a\u043b\u044e\u0447\u0435\u0439<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u043a\u043b\u044e\u0447?<\/strong><\/p>\n<p>1. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0432 \u0413\u0443\u0433\u043b.<\/p>\n<p>2. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0441\u044e\u0434\u0430: <a href=\"https:\/\/console.cloud.google.com\/apis\/enableflow?apiid=indexing.googleapis.com&amp;;credential=client_key&amp;hl=ru&amp;pli=1\" rel=\"noopener noreferrer nofollow\">https:\/\/console.cloud.google.com\/apis\/enableflow?apiid=indexing.googleapis.com&amp;;credential=client_key&amp;hl=ru&amp;pli=1<\/a>\u00a0 \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c API.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2f1\/57c\/b4d\/2f157cb4db0e013ce22c323e4ea34d9d.webp\" width=\"670\" height=\"255\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/2f1\/57c\/b4d\/2f157cb4db0e013ce22c323e4ea34d9d.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2f1\/57c\/b4d\/2f157cb4db0e013ce22c323e4ea34d9d.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>3.\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0441\u044e\u0434\u0430: <a href=\"https:\/\/console.cloud.google.com\/projectselector2\/iam-admin\/serviceaccounts?supportedpurview=project\" rel=\"noopener noreferrer nofollow\">https:\/\/console.cloud.google.com\/projectselector2\/iam-admin\/serviceaccounts?supportedpurview=project<\/a> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u201cCreate Project\u201d.<\/p>\n<p>4. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.<\/p>\n<p>5. \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u043e\u043b\u044c \u201cOwner\u201d. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c done.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e38\/f65\/4e1\/e38f654e15713af376e7d57bdaf6a448.webp\" width=\"335\" height=\"671\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/e38\/f65\/4e1\/e38f654e15713af376e7d57bdaf6a448.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e38\/f65\/4e1\/e38f654e15713af376e7d57bdaf6a448.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>6. \u041a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443 (\u043d\u0430 \u043f\u043e\u0447\u0442\u0443).<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d8c\/d94\/859\/d8cd948593327850a93946bc1821a890.webp\" width=\"228\" height=\"151\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/d8c\/d94\/859\/d8cd948593327850a93946bc1821a890.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d8c\/d94\/859\/d8cd948593327850a93946bc1821a890.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>7. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Keys \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u044e\u0447. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 Json \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043b\u044e\u0447\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 json_keys.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3f1\/8f1\/4d2\/3f18f14d25b3068cb4034a729d97580d.webp\" width=\"519\" height=\"470\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3f1\/8f1\/4d2\/3f18f14d25b3068cb4034a729d97580d.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3f1\/8f1\/4d2\/3f18f14d25b3068cb4034a729d97580d.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>8. \u0412 Google Search Console \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u201c\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u201d \u2014 \u201c\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u201d \u2014 \u201c\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0443\u044e \u043f\u043e\u0447\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430\u201d.<\/p>\n<h3>\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c?<\/h3>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u043b \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 URL \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0438\u0445 \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e. \u041c\u043e\u0439 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<ul>\n<li>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/strong> \u2014 Google \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0435 \u0441\u043f\u0430\u043c\u0438\u0442\u044c API \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a\u043e\u0439 JSON-\u043a\u043b\u044e\u0447 &#171;\u0441\u0433\u043e\u0440\u0435\u043b&#187;<\/strong> \u043f\u043e \u043a\u0432\u043e\u0442\u0435 \u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0435\u0433\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0438\u0448\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b<\/strong> (\u0438\u043b\u0438 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438).<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u043a\u043e\u0434\u043e\u043c <\/strong><code><strong>429 RESOURCE_EXHAUSTED<\/strong><\/code> \u2014 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 &#171;\u043e\u0431\u0440\u044b\u0432\u0430&#187; \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u0437-\u0437\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043b\u0438\u043c\u0438\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0431\u044b\u043b\u0438 \u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e URL<\/strong> \u2014 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 URL \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u043f\u043e\u043f\u0430\u0434\u0430\u043b \u0432 \u0438\u043d\u0434\u0435\u043a\u0441.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h3>\n<ol>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 <\/strong><code><strong>json_keys\/<\/strong><\/code> \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <code>.json<\/code>-\u043a\u043b\u044e\u0447\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <\/strong><code><strong>urls.csv<\/strong><\/code> \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"python\">https:\/\/example.com\/page-1 https:\/\/example.com\/page-2<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442<\/strong> \u2014 \u043e\u043d \u0441\u0430\u043c \u0432\u0441\u0451 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <\/p>\n<\/li>\n<\/ol>\n<h3> \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c <\/h3>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f29\/a3d\/3b8\/f29a3d3b88755ae3911982e3405840e4.png\" alt=\"\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435\u0441\u044c\" title=\"\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435\u0441\u044c\" width=\"1658\" height=\"125\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/f29\/a3d\/3b8\/f29a3d3b88755ae3911982e3405840e4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f29\/a3d\/3b8\/f29a3d3b88755ae3911982e3405840e4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435\u0441\u044c<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043a\u0432\u043e\u0442\u0430\u043c\u0438?<\/h3>\n<p>Google \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 <strong>\u0434\u043e 200 URL \u0432 \u0434\u0435\u043d\u044c \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442<\/strong>, \u0438 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 Google Cloud<\/strong>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e \u0441\u0432\u043e\u0438\u043c JSON-\u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <code>json_keys\/<\/code> \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442, \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u0438 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u0434\u043b\u044f \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u0430. \u0412\u043e\u0442 \u0438\u0434\u0435\u0438 \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 \u0432 \u0411\u0414 \u2014 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <code>txt_file<\/code> \u043d\u0430 <code>database<\/code> \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c Telegram-\u0431\u043e\u0442\u0430 \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043a\u0432\u043e\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 URL \u0432 <code>urls.csv<\/code> \u0438\u0437 Sitemap \u0441\u0430\u0439\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<h3>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h3>\n<p>\u0414\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3e3\/e4f\/7d8\/3e3e4f7d879398ddd7bc3cf5c3635c37.png\" alt=\"\u0415\u0449\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430\" title=\"\u0415\u0449\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430\" width=\"988\" height=\"303\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3e3\/e4f\/7d8\/3e3e4f7d879398ddd7bc3cf5c3635c37.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3e3\/e4f\/7d8\/3e3e4f7d879398ddd7bc3cf5c3635c37.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0415\u0449\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u043f\u043e\u0441\u043b\u0435:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/791\/129\/2b5\/7911292b532327888a9347a723517ee4.png\" alt=\"\u0412\u0430\u0443, \u043e\u043d\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u0434\u0432\u0438\u043d\u0443\u043b\u043e\u0441\u044c \u0441 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u044f\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043c\u0435\u0441\u044f\u0446\u0435\u0432\" title=\"\u0412\u0430\u0443, \u043e\u043d\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u0434\u0432\u0438\u043d\u0443\u043b\u043e\u0441\u044c \u0441 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u044f\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043c\u0435\u0441\u044f\u0446\u0435\u0432\" width=\"1028\" height=\"293\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/791\/129\/2b5\/7911292b532327888a9347a723517ee4.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/791\/129\/2b5\/7911292b532327888a9347a723517ee4.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u0430\u0443, \u043e\u043d\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u0434\u0432\u0438\u043d\u0443\u043b\u043e\u0441\u044c \u0441 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u044f\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043c\u0435\u0441\u044f\u0446\u0435\u0432<\/figcaption><\/div>\n<\/figure>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>Google Indexing API \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0441\u0432\u0435\u0436\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u043b\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 URL \u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0438\u0445 \u043f\u0438\u043f\u0435\u0446 \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e. \u041d\u043e \u0432\u0430\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043b\u0438\u043c\u0438\u0442\u044b \u0438 \u0443\u043c\u0435\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u0432\u043e\u0442\u0430\u043c\u0438. \u041c\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0434\u043e\u0431\u044b\u0442\u044c 500 \u0448\u0442\u0443\u043a\u0443 \u0433\u0443\u0433\u043b \u043f\u043e\u0447\u0442. =)<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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\/ru\/articles\/903470\/\"> https:\/\/habr.com\/ru\/articles\/903470\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f URL \u0432 Google \u2014 \u0432\u0430\u0436\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0440\u0443\u043a\u0430\u0445 SEO-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430 \u0438 \u043c\u0430\u0440\u043a\u0435\u0442\u043e\u043b\u043e\u0433\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u043d\u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u2014 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c Google \u043c\u043e\u0436\u043d\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u0430\u0439\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Indexing API \u043c\u043e\u0436\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python-\u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043d\u043e \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0438 \u0443\u0441\u0438\u043b\u0438\u043b \u0435\u0433\u043e.<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">import datetime from oauth2client.service_account import ServiceAccountCredentials import httplib2 import json import os from script_mysql import MySQLi from config import * import time  # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442 \u043c\u043e\u0434\u0443\u043b\u044f time  \"\"\" pip install google-api-python-client oauth2client pip install --upgrade oauth2client \"\"\"   def write_result(work_type, url, date):     if work_type == 'database':         db = MySQLi(host, user, password, database_home)         db.commit(\"INSERT INTO indexing_api (url, date) VALUES (%s, %s)\", url, datetime.date.today())     elif work_type == 'txt_file':         with open('result.txt', 'a', encoding='utf-8') as result_file:             string_write = f\"{url};{date}\\n\"             result_file.write(string_write)   SCOPES = [\"https:\/\/www.googleapis.com\/auth\/indexing\"]   def indexURL2(u, http):     ENDPOINT = \"https:\/\/indexing.googleapis.com\/v3\/urlNotifications:publish\"     content = {'url': u.strip(), 'type': \"URL_UPDATED\"}     json_ctn = json.dumps(content)     response, content = http.request(ENDPOINT, method=\"POST\", body=json_ctn)     result = json.loads(content.decode())      if \"error\" in result:         print(\"Error({} - {}): {}\".format(result[\"error\"][\"code\"], result[\"error\"][\"status\"],                                           result[\"error\"][\"message\"]))         return \"Error({} - {}): {}\".format(result[\"error\"][\"code\"], result[\"error\"][\"status\"],                                            result[\"error\"][\"message\"])     else:         print(\"URL \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e: {}\".format(result[\"urlNotificationMetadata\"][\"url\"]))          if \"latestUpdate\" in result[\"urlNotificationMetadata\"]:             latest_update = result[\"urlNotificationMetadata\"][\"latestUpdate\"]             print(\"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 URL:\")             print(\"- URL: {}\".format(latest_update.get(\"url\", \"N\/A\")))             print(\"- \u0422\u0438\u043f: {}\".format(latest_update.get(\"type\", \"N\/A\")))             print(\"- \u0412\u0440\u0435\u043c\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f: {}\".format(latest_update.get(\"notifyTime\", \"N\/A\")))         else:             print(\"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445, \u043d\u043e URL \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d.\")          return \"OK\"   count_urls = 0 for root, dirs, files in os.walk(\"json_keys\"):     for json_key_path_name in files:         json_key = 'json_keys\/' + json_key_path_name         credentials = ServiceAccountCredentials.from_json_keyfile_name(json_key, scopes=SCOPES)         http = credentials.authorize(httplib2.Http())          with open(\"urls.csv\", \"r\") as a_file:             urls = a_file.readlines()          with open(\"urls.csv\", \"w\") as new_file:             flag = False             request_google_api = ''             for url in urls:                 url_new = url.rstrip(\"\\n\")                 if flag:                     new_file.write(url)                 else:                     request_google_api = indexURL2(url_new, http)                     time.sleep(1)  # \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438                  if 'Error' in request_google_api:                     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 429, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c, \u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u044e\u0447 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043b \u043a\u0432\u043e\u0442\u0443                     if \"RESOURCE_EXHAUSTED\" in request_google_api:                         print(f\"\u041a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0430 {json_key}\")                     flag = True                     new_file.write(url)                     request_google_api = ''                 else:                     if not flag:                         write_result('txt_file', url_new, datetime.date.today())                         count_urls += 1  print(\"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e: \" + str(count_urls) + \" \u0448\u0442.\") <\/code><\/pre>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442?<\/h3>\n<p>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u0440\u0430\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <code>.py<\/code> \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435. \u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u043a\u0440\u0438\u043f\u0442, \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <code>urls.csv<\/code> \u0438 \u043f\u0430\u043f\u043a\u0443 <code>json_keys<\/code> .<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ol>\n<li>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a URL-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <code>urls.csv<\/code><\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 URL \u0432 Google Indexing API \u0441 \u0442\u0438\u043f\u043e\u043c <code>URL_UPDATED<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0444\u0430\u0439\u043b <code>result.txt<\/code><\/p>\n<\/li>\n<li>\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u0432\u043e\u0442\u0435 \u2014 \u0435\u0441\u043b\u0438 \u043a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430, \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e JSON-\u043a\u043b\u044e\u0447\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <code>json_keys<\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <strong>\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/strong> \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442\u044c \u043b\u0438\u043c\u0438\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 URL \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u043d\u0435\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u2014 \u0435\u0435 \u043a\u043e\u0434, \u0441\u0442\u0430\u0442\u0443\u0441 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u0438\u043c\u044f \u043a\u043b\u044e\u0447\u0430, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u043a\u0432\u043e\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u0427\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f?<\/h3>\n<ul>\n<li>\n<p>Python 3+<\/p>\n<\/li>\n<li>\n<p>\u0410\u043a\u043a\u0430\u0443\u043d\u0442 Google Cloud \u0441 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c <strong>Indexing API<\/strong><\/p>\n<\/li>\n<li>\n<p>\u041e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 JSON-\u043a\u043b\u044e\u0447\u0435\u0439<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u043a\u043b\u044e\u0447?<\/strong><\/p>\n<p>1. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0432 \u0413\u0443\u0433\u043b.<\/p>\n<p>2. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0441\u044e\u0434\u0430: <a href=\"https:\/\/console.cloud.google.com\/apis\/enableflow?apiid=indexing.googleapis.com&amp;;credential=client_key&amp;hl=ru&amp;pli=1\" rel=\"noopener noreferrer nofollow\">https:\/\/console.cloud.google.com\/apis\/enableflow?apiid=indexing.googleapis.com&amp;;credential=client_key&amp;hl=ru&amp;pli=1<\/a>\u00a0 \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c API.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>3.\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0441\u044e\u0434\u0430: <a href=\"https:\/\/console.cloud.google.com\/projectselector2\/iam-admin\/serviceaccounts?supportedpurview=project\" rel=\"noopener noreferrer nofollow\">https:\/\/console.cloud.google.com\/projectselector2\/iam-admin\/serviceaccounts?supportedpurview=project<\/a> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u201cCreate Project\u201d.<\/p>\n<p>4. \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.<\/p>\n<p>5. \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u043e\u043b\u044c \u201cOwner\u201d. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c done.<\/p>\n<figure class=\"\"><\/figure>\n<p>6. \u041a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443 (\u043d\u0430 \u043f\u043e\u0447\u0442\u0443).<\/p>\n<figure class=\"\"><\/figure>\n<p>7. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Keys \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u044e\u0447. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 Json \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043b\u044e\u0447\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 json_keys.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>8. \u0412 Google Search Console \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u201c\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u201d \u2014 \u201c\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u201d \u2014 \u201c\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0443\u044e \u043f\u043e\u0447\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430\u201d.<\/p>\n<h3>\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c?<\/h3>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u043b \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 URL \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0438\u0445 \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e. \u041c\u043e\u0439 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:<\/p>\n<ul>\n<li>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/strong> \u2014 Google \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0435 \u0441\u043f\u0430\u043c\u0438\u0442\u044c API \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a\u043e\u0439 JSON-\u043a\u043b\u044e\u0447 &#171;\u0441\u0433\u043e\u0440\u0435\u043b&#187;<\/strong> \u043f\u043e \u043a\u0432\u043e\u0442\u0435 \u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0435\u0433\u043e.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0438\u0448\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b<\/strong> (\u0438\u043b\u0438 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438).<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u043a\u043e\u0434\u043e\u043c <\/strong><code><strong>429 RESOURCE_EXHAUSTED<\/strong><\/code> \u2014 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 &#171;\u043e\u0431\u0440\u044b\u0432\u0430&#187; \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u0437-\u0437\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043b\u0438\u043c\u0438\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0431\u044b\u043b\u0438 \u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e URL<\/strong> \u2014 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 URL \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u043f\u043e\u043f\u0430\u0434\u0430\u043b \u0432 \u0438\u043d\u0434\u0435\u043a\u0441.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h3>\n<ol>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 <\/strong><code><strong>json_keys\/<\/strong><\/code> \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <code>.json<\/code>-\u043a\u043b\u044e\u0447\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <\/strong><code><strong>urls.csv<\/strong><\/code> \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"python\">https:\/\/example.com\/page-1 https:\/\/example.com\/page-2<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442<\/strong> \u2014 \u043e\u043d \u0441\u0430\u043c \u0432\u0441\u0451 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <\/p>\n<\/li>\n<\/ol>\n<h3> \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c <\/h3>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435\u0441\u044c<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043a\u0432\u043e\u0442\u0430\u043c\u0438?<\/h3>\n<p>Google \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 <strong>\u0434\u043e 200 URL \u0432 \u0434\u0435\u043d\u044c \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442<\/strong>, \u0438 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 Google Cloud<\/strong>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e \u0441\u0432\u043e\u0438\u043c JSON-\u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <code>json_keys\/<\/code> \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0432\u043e\u0442\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0430 \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442, \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u0438 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0440 \u0434\u043b\u044f \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u0430. \u0412\u043e\u0442 \u0438\u0434\u0435\u0438 \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 \u0432 \u0411\u0414 \u2014 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <code>txt_file<\/code> \u043d\u0430 <code>database<\/code> \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c Telegram-\u0431\u043e\u0442\u0430 \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043a\u0432\u043e\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 URL \u0432 <code>urls.csv<\/code> \u0438\u0437 Sitemap \u0441\u0430\u0439\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<h3>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h3>\n<p>\u0414\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0415\u0449\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u043f\u043e\u0441\u043b\u0435:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u0430\u0443, \u043e\u043d\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u0434\u0432\u0438\u043d\u0443\u043b\u043e\u0441\u044c \u0441 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u044f\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 2 \u043c\u0435\u0441\u044f\u0446\u0435\u0432<\/figcaption><\/div>\n<\/figure>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>Google Indexing API \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0441\u0432\u0435\u0436\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u043b\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 URL \u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0438\u0445 \u043f\u0438\u043f\u0435\u0446 \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e. \u041d\u043e \u0432\u0430\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043b\u0438\u043c\u0438\u0442\u044b \u0438 \u0443\u043c\u0435\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u0432\u043e\u0442\u0430\u043c\u0438. \u041c\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0435\u0448\u0430\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0434\u043e\u0431\u044b\u0442\u044c 500 \u0448\u0442\u0443\u043a\u0443 \u0433\u0443\u0433\u043b \u043f\u043e\u0447\u0442. =)<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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\/ru\/articles\/903470\/\"> https:\/\/habr.com\/ru\/articles\/903470\/<\/a><br \/><\/br><\/br><\/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-457070","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/457070","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=457070"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/457070\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=457070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=457070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=457070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}