{"id":301030,"date":"2020-03-31T15:00:24","date_gmt":"2020-03-31T15:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=301030"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=301030","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 Tinder"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494990\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/it\/ad\/hz\/itadhzbyhhjzdl7oiw9xvfa51mi.gif\"\/><br \/>  \u0414\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u043b\u044e\u0431\u044f\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u0446. \u0441\u0435\u0442\u044f\u0445 \u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Tinder),<br \/>  \u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0443\u0445\u043e\u0434\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435<br \/>  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u042f \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442 \u043e\u0442<br \/>  \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0437\u0430\u0447\u0435\u043c \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0432\u0441\u0435, \u0434\u0430\u0432\u0430\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e<br \/>  \u043c\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0432\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e<br \/>  \u0434\u043b\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043d\u043e \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>  <\/p>\n<blockquote><p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 <i><b>Chrome<\/b><\/i>.<\/p><\/blockquote>\n<ol>\n<li> \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c <b><i>bot_tinder<\/i><\/b>.<\/li>\n<li>\u0412 \u043f\u0430\u043f\u043a\u0435 <b><i>bot_tinder<\/i><\/b> \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438<b><i>chromedriver_for_win<\/i><\/b> \u0438 <b><i>chromedriver_for_mac<\/i><\/b>, \u0438 <b><i>chromedriver_for_lin<\/i><\/b> (\u0442.\u043a. \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0435\u043b\u0430\u0435\u043c \u0434\u043b\u044f 3 \u041e\u0421 <i>Windows<\/i>, <i>macOS<\/i>, <i>Linux<\/i>).<\/li>\n<li>\u0421\u043a\u0430\u0447\u0430\u0435\u043c <a href=\"https:\/\/chromedriver.chromium.org\/downloads\">webdriver<\/a> \u043f\u043e\u0434 \u0432\u0430\u0448\u0443 \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Chrome, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Firefox \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u0442 <a href=\"https:\/\/github.com\/mozilla\/geckodriver\/releases\">\u0441\u044e\u0434\u0430<\/a>), \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0441\u0445\u043e\u0434\u0441\u0442\u0432\u0430 \u0441 \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u041e\u0421.<\/li>\n<li>\u0421\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c <b><i>chromedriver_for_win, chromedriver_for_mac, chromedriver_for_lin<\/i><\/b>.<br \/>\n<blockquote><p>\u0415\u0441\u043b\u0438 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u041e\u0421, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u0442.\u043a. \u0432 \u043a\u043e\u0434\u0435 \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<\/p><\/blockquote>\n<\/li>\n<li>\u0412 \u043f\u0430\u043f\u043a\u0435 <b><i>bot_tinder<\/i><\/b> \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <b><i>log.txt<\/i><\/b> (\u0432 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432 Tinder). \u0424\u043e\u0440\u043c\u0430\u0442 \u0431\u0435\u0437 \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u043a\u0438: 9851234567<\/li>\n<li>\u0412 \u043f\u0430\u043f\u043a\u0435 <b><i>bot_tinder<\/i><\/b> \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u044b <b><i>tinder.py<\/i><\/b>, <b><i>function.py<\/i><\/b>.<\/li>\n<\/ol>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qg\/xy\/bq\/qgxybqvceolh0zkjarl5inx9r0m.png\"\/><\/p>\n<p>  \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b <b><i>webdriver<\/i><\/b> \u0441\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435.  <\/p>\n<blockquote><p>\u0415\u0441\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u041e\u0421, \u0442\u043e\u0433\u0434\u0430\u00a0 \u0444\u0430\u0439\u043b <b><i>webdriver<\/i><\/b> \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0430\u043f\u043e\u043a \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0430\u0448\u0435\u0439 \u041e\u0421 <i>\u00abchromedriver_for_\u0432\u0430\u0448\u0430\u041e\u0421\u00bb<\/i>.<\/p><\/blockquote>\n<p>  <\/p>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 <b><i>tinder.py<\/i><\/b> \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/p>\n<pre><code class=\"python\"># -*- coding: utf-8-*- from selenium import webdriver<\/code><\/pre>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 <b><i>function.py<\/i><\/b> \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<pre><code class=\"python\">from selenium.common.exceptions import NoSuchElementException, ElementNotInteractableException from sys import platform from time import sleep import datetime<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 <b><i>function.py<\/i><\/b> \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043f\u043e\u0437\u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<pre><code class=\"python\">error = '' warning = '' ok = '' oc = '' like = '' all_sleep = 3 like_sleep = 2<\/code><\/pre>\n<p>\u0417\u043d\u0430\u0447\u043a\u0438 \u0443\u0434\u0430\u043b\u0438\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u043e\u043c \u0425\u0430\u0431\u0440, \u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/uv\/tz\/lq\/uvtzlqhxzo0nh5vzharx5tc1dn4.png\"\/><\/p>\n<p>  \u0417\u043d\u0430\u0447\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 <a href=\"https:\/\/www.copyandpasteemoji.com\/\">\u0441\u0430\u0439\u0442\u0430<\/a> \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/pypi.org\/project\/emoji\/\">emoji<\/a>.<br \/>  \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <b><i>all_sleep<\/i><\/b>, <b><i>like_sleep<\/i><\/b> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 <b><i>function.py<\/i><\/b> \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>  \u041f\u0435\u0440\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u0430\u0442\u0443 \u0438 \u0432\u0440\u0435\u043c\u044f:<br \/> \n<pre><code class=\"python\">def get_data_time(): \u00a0\u00a0\u00a0 time_now = datetime.datetime.now() \u00a0\u00a0\u00a0 return time_now.strftime(&quot;%d-%m-%Y %H:%M&quot;)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0412\u0442\u043e\u0440\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0412\u0430\u0448\u0443 \u041e\u0421 \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 <b><i>webdriver<\/i><\/b>:\n<pre><code class=\"python\">def get_OC(): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Define OS. \u00a0\u00a0\u00a0 :return: OS information and path to chromedriver.exe \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 if platform == &quot;linux&quot; or platform == &quot;linux2&quot;: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 time_now = datetime.datetime.now() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 information = &quot;[&quot; + get_data_time() + '] {} \u0412\u0430\u0448\u0430 \u041e\u0421 Linux'.format(oc) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 put = &quot;chromedriver_for_lin\/**\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 webdriver**&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return information, put  \u00a0\u00a0\u00a0 elif platform == &quot;darwin&quot;: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 time_now = datetime.datetime.now() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 information = &quot;[&quot; + get_data_time() + '] {} \u0412\u0430\u0448\u0430 \u041e\u0421 Mac'.format(oc) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 put = &quot;chromedriver_for_mac\/**\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 webdriver**&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return information, put  \u00a0\u00a0\u00a0 elif platform == &quot;win32&quot;: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 time_now = datetime.datetime.now() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 information = &quot;[&quot; + get_data_time() + '] {} \u0412\u0430\u0448\u0430 \u041e\u0421 Windows'.format(oc) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 put = &quot;chromedriver_for_win\/chromedriver.exe&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return information, put<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u043a <b><i>webdriver<\/i><\/b> \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b><i>put<\/i><\/b>.<\/p><\/blockquote>\n<p>  <\/li>\n<li>\u0422\u0440\u0435\u0442\u044c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <b><i>log.txt<\/i><\/b>:\n<pre><code class=\"python\">def information_from_txt_files(): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Read the .txt files \u00a0\u00a0\u00a0 :return: Information. Login. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 information = '' \u00a0\u00a0\u00a0 with open('log.txt', 'r') as file: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 log = file.read() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 information += &quot;[&quot; + get_data_time() + \\ \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 '] {} \u041b\u043e\u0433\u0438\u043d \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442 Tinder: {}'.format(ok, log)  \u00a0\u00a0\u00a0 return information, log<\/code><\/pre>\n<p>  <\/li>\n<li>\u0427\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Tinder:\n<pre><code class=\"python\">def close_start_popups(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Close the popup. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser.find_element_by_xpath('\/\/button[@aria-label=&quot;\u0417\u0430\u043a\u0440\u044b\u0442\u044c&quot;]').click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + &quot;] {} \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u043e.&quot;.format(ok) \u00a0\u00a0\u00a0 except ElementNotInteractableException as err: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} ' + err + ''.format(error) \u00a0\u00a0\u00a0 except NoSuchElementException as err: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u0432\u0441\u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u041f\u044f\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 <i>\u00ab\u0412\u043e\u0439\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u00bb<\/i>:\n<pre><code class=\"python\">def log_in_using_your_phone(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Click the Login button using the phone number. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser.find_element_by_xpath('\/\/div[@id=&quot;modal-manager&quot;]').find_element_by_xpath('\/\/button[@aria-label=&quot;\u0412\u043e\u0439\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430&quot;]').click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + &quot;] {} \u0412\u043e\u0439\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.&quot;.format(ok) \u00a0\u00a0\u00a0 except ElementNotInteractableException as err: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} ' + err + ''.format(error) \u00a0\u00a0\u00a0 except NoSuchElementException as err: \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0browser.find_element_by_xpath('\/\/button[text()=&quot;\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b&quot;]').click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return log_in_using_your_phone(browser)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0428\u0435\u0441\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430:\n<pre><code class=\"python\">def input_number_phone(browser, log): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Enter the phone number. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :param log: phone number. \u00a0\u00a0\u00a0 :return: information. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser.find_element_by_name('phone_number').send_keys(log) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u0412\u0432\u0435\u0434\u0435\u043d \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 {}'.format(ok, log) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043e\u043a\u043d\u0430 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0421\u0435\u0434\u044c\u043c\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 <i>\u00ab\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u00bb<\/i>:\n<pre><code class=\"python\">def go_on(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Click the Continue button. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser.find_element_by_xpath('\/\/span[text()=&quot;\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c&quot;]').click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c'.format(ok) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043a\u043d\u043e\u043f\u043a\u0438 \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0412\u043e\u0441\u044c\u043c\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0432\u0432\u043e\u0434 \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0435\u0442 \u0412\u0430\u043c \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d:\n<pre><code class=\"python\">def code_check(): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Entering a code and checking the entered code. \u00a0\u00a0\u00a0 :return: entered code \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 kod_numbers = input(&quot;[&quot; + get_data_time() + &quot;] {} \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0434: &quot;.format(warning)) \u00a0\u00a0\u00a0 if len(kod_numbers) != 6: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(&quot;[&quot; + get_data_time() + '] {} \u041a\u043e\u0434 \u043d\u0435 \u0432\u0435\u0440\u043d\u044b\u0439.'.format(error)) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return code_check() \u00a0\u00a0\u00a0 else: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(&quot;[&quot; + get_data_time() + '] {} \u0424\u043e\u0440\u043c\u0430\u0442 \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d.'.format(ok)) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return kod_numbers<\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0446\u0438\u0444\u0440.  <\/li>\n<li>\u0414\u0435\u0432\u044f\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0432\u043e\u0434\u0438\u0442 \u043a\u043e\u0434:\n<pre><code class=\"python\">def input_cod(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Code entry. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 kod_numbers = code_check() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 kod = browser.find_elements_by_xpath('\/\/input[@type=&quot;tel&quot;]') \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 n = 0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for i in kod: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 i.send_keys(kod_numbers[n]) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 n += 1 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041a\u043e\u0434 \u0432\u0432\u0435\u0434\u0435\u043d.'.format(ok) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u0434\u0430.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0414\u0435\u0441\u044f\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438:\n<pre><code class=\"python\">def geolocation_ok(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 We allow geolocation. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser_button = browser.find_elements_by_tag_name(&quot;button&quot;) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button_list = {i.text: i for i in browser_button} \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if &quot;\u0420\u0410\u0417\u0420\u0415\u0428\u0418\u0422\u042c&quot; in button_list.keys(): \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button = [value for key, value in button_list.items() if key == &quot;\u0420\u0410\u0417\u0420\u0415\u0428\u0418\u0422\u042c&quot;] \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button[0].click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u0413\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430.'.format(ok) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435\u0439 \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0434\u043b\u044f \u0413\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438.'.format(error) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435\u0439 \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0434\u043b\u044f \u0413\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u041e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435:\n<pre><code class=\"python\">def notice_off(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Turn off notifications. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser. \u00a0\u00a0\u00a0 :return: information. \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(all_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser_button = browser.find_elements_by_tag_name(&quot;button&quot;) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button_list = {i.text: i for i in browser_button} \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if &quot;\u041d\u0415\u0418\u041d\u0422\u0415\u0420\u0415\u0421\u041d\u041e&quot; in button_list.keys(): \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button = [value for key, value in button_list.items() if key == &quot;\u041d\u0415\u0418\u041d\u0422\u0415\u0420\u0415\u0421\u041d\u041e&quot;] \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button[0].click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b.'.format(ok) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435 \u041d\u0435\u0438\u043d\u0442\u0435\u0440\u0441\u043d\u043e \u0434\u043b\u044f \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.'.format(error) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435 \u041d\u0435\u0438\u043d\u0442\u0435\u0440\u0441\u043d\u043e \u0434\u043b\u044f \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.'.format(error)<\/code><\/pre>\n<p>  <\/li>\n<li>\u0414\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430:\n<pre><code class=\"python\">def popup_windows_off(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Close popups. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser \u00a0\u00a0\u00a0 :return: information \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sleep(like_sleep) \u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser_button = browser.find_elements_by_tag_name(&quot;button&quot;) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button_list = {i.text: i for i in browser_button} \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if &quot;\u041d\u0415\u0418\u041d\u0422\u0415\u0420\u0415\u0421\u041d\u041e&quot; in button_list.keys(): \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button = [value for key, value in button_list.items() if key == &quot;\u041d\u0415\u0418\u041d\u0422\u0415\u0420\u0415\u0421\u041d\u041e&quot;] \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 button[0].click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(&quot;[&quot; + get_data_time() + '] {} \u0412\u0441\u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e.'.format(ok)) \u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass<\/code><\/pre>\n<p>  <\/li>\n<li>\u0422\u0440\u0438\u043d\u0430\u0434\u0446\u0430\u0442\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0442\u0430\u0432\u0438\u0442 Like:\n<pre><code class=\"python\">def click_like(browser): \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 Click LIKE. \u00a0\u00a0\u00a0 :param browser: parameter of the running browser \u00a0\u00a0\u00a0 :return: information \u00a0\u00a0\u00a0 &quot;&quot;&quot; \u00a0\u00a0\u00a0 sum_like = 0 \u00a0\u00a0\u00a0 while True: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 popup_windows_off(browser) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 browser.find_element_by_xpath('\/\/button[@aria-label=&quot;\u041b\u0430\u0439\u043a&quot;]').click() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sum_like += 1 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(&quot;[&quot; + get_data_time() + '] {} - {}'.format(like, str(sum_like))) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 except NoSuchElementException: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(&quot;[&quot; + get_data_time() + '] {} \u041d\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u043b\u0435 \u041b\u0430\u0439\u043a.'.format(error))<\/code><\/pre>\n<p>  <\/li>\n<\/ul>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0444\u0430\u0439\u043b\u0443 <b><i>tinder.py<\/i><\/b> \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442 \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<pre><code class=\"python\">from function import get_OC, information_from_txt_files, close_start_popups, notice_off, click_like, log_in_using_your_phone, input_number_phone, go_on, input_cod, geolocation_ok<\/code><\/pre>\n<p>  \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u041e\u0421:  <\/p>\n<pre><code class=\"python\"># \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u041e\u0421 info, put = get_OC() print(info)<\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430:<\/p>\n<pre><code class=\"python\"># \u043f\u0443\u0442\u044c \u043a \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0443 chrome chromedriver = put options = webdriver.ChromeOptions() options.add_argument('--start-minimize') browser = webdriver.Chrome(executable_path=chromedriver, chrome_options=options)<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 <b><i>Firefox<\/i><\/b> \u0442\u043e\u0433\u0434\u0430, \u043f\u0440\u043e\u0447\u0442\u0438\u0442\u0435 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <a href=\"https:\/\/selenium-python.readthedocs.io\/getting-started.html\">selenium.webdriver<\/a>.<\/p><\/blockquote>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 Tinder:<\/p>\n<pre><code class=\"python\"># \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 browser.get('https:\/\/tinder.com\/app\/recs')<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435:<\/p>\n<pre><code class=\"python\"># \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c txt \u0444\u0430\u0439\u043b\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 info_txt, log = information_from_txt_files() print(info_txt) # \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e print(close_start_popups(browser)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0412\u0445\u043e\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 print(log_in_using_your_phone(browser)) # \u0412\u0432\u043e\u0434\u0438\u043c \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 print(input_number_phone(browser, log)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c print(go_on(browser)) # \u0412\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u0434 print(input_cod(browser)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c print(go_on(browser)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e print(geolocation_ok(browser)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f print(notice_off(browser)) # \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u041b\u0430\u0439\u043a click_like(browser)<\/code><\/pre>\n<p>  <\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0431\u043e\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442 Tinder \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 Like. <\/p>\n<p>  \u0412\u0430\u043c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u0436\u0435 \u0432\u0437\u0430\u0438\u043c\u043d\u044b\u043c\u0438<br \/>  \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u044f\u043c\u0438.  <\/p>\n<blockquote><p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u0440\u0430\u043d\u0438\u044f \u043c\u0443\u0436\u0447\u0438\u043d \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u043c\u043e\u0433\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0436\u0435\u043d\u0449\u0438\u043d\u044b.<\/p><\/blockquote>\n<p><i>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043d\u044b\u0445 \u043b\u0430\u0439\u043a\u043e\u0432.<\/i><\/div>\n<p> \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\/post\/494990\/\"> https:\/\/habr.com\/ru\/post\/494990\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494990\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/it\/ad\/hz\/itadhzbyhhjzdl7oiw9xvfa51mi.gif\"\/><br \/>  \u0414\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u043b\u044e\u0431\u044f\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u0446. \u0441\u0435\u0442\u044f\u0445 \u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Tinder),<br \/>  \u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0443\u0445\u043e\u0434\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435<br \/>  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u042f \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442 \u043e\u0442<br \/>  \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0437\u0430\u0447\u0435\u043c \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0432\u0441\u0435, \u0434\u0430\u0432\u0430\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e<br \/>  \u043c\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0432\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e<br \/>  \u0434\u043b\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043d\u043e \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.  <\/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-301030","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301030","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=301030"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301030\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}