{"id":311776,"date":"2020-10-20T21:00:26","date_gmt":"2020-10-20T21:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311776"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311776","title":{"rendered":"\u041a\u0430\u043a \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0430\u0441 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u043e\u0439 \u043f\u0438\u0446\u0446\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python \u0438 Selenium"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<h1>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0433\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u0441 \u043f\u044b\u0442\u043b\u0438\u0432\u044b\u043c \u0443\u043c\u043e\u043c<\/h1>\n<p>  \u041d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u0432\u044b, \u0430 \u044f \u043e\u0431\u043e\u0436\u0430\u044e \u043f\u0438\u0446\u0446\u0443. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0435 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u044b\u0435 \u043f\u0438\u0446\u0446\u0430-\u043f\u0430\u043b\u043e\u0447\u043a\u0438 Papa John\u2019s. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0431\u044b\u043b \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0430\u0437\u0430 \u0435\u0434\u044b \u043d\u0430\u0432\u044b\u043d\u043e\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442 \u043d\u0438\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0438\u0441\u044c\u043c\u043e:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/26b\/46e\/a9a\/26b46ea9a58f6b0920dc74227ae5bf58.png\"><br \/>  <i>Papa John\u2019s (\u0441) \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0438\u0441\u044c\u043c\u0430 \u0441 \u043e\u043f\u0440\u043e\u0441\u043e\u043c<\/i> <\/p>\n<p>  \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0435\u0434\u0430! \u041c\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u043e\u043f\u0440\u043e\u0441\u2026<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u041e\u043f\u0440\u043e\u0441<\/h1>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/66f\/ebb\/619\/66febb619f8d74c3e788799ca37b8343.png\"><br \/>  <i>Papa John\u2019s (\u0441) \u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u043f\u0440\u043e\u0441\u0430<\/i> <\/p>\n<p>  \u042f \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0441 \u043a\u0430\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043a\u043e\u0434 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u043e\u0439 \u043f\u0438\u0446\u0446\u044b.<\/p>\n<p>  \u041d\u043e \u0438\u0437 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u044f \u0435\u0449\u0451 \u0440\u0430\u0437 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u043b \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443. \u041f\u043e\u0445\u043e\u0436\u0435, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 GUID \u0431\u044b\u043b \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0423\u0433\u0430\u0434\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0435\u0433\u043e \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435? \u0412\u044b\u0441\u043a\u043e\u0447\u0438\u043b \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0440\u043e\u0441 \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u0445\u0430\u043b\u044f\u0432\u043d\u044b\u043c\u0438 \u043f\u0438\u0446\u0446\u0430-\u043f\u0430\u043b\u043e\u0447\u043a\u0430\u043c\u0438.<\/p>\n<p>  \u042f \u043c\u043e\u0433 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0435\u0447\u043d\u043e! \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0441\u0430\u043c\u043e\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0433\u0438\u0438 Selenium.<\/p>\n<h1>\u0411\u043e\u0442<\/h1>\n<p>  <a href=\"https:\/\/www.selenium.dev\/\" rel=\"nofollow\">Selenium Webdriver<\/a>\u00a0\u2014 \u044d\u0442\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u042f \u0432\u044b\u0431\u0440\u0430\u043b Python \u043a\u0430\u043a \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c Selenium \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u043f\u0440\u043e\u0441\u043d\u043e\u0433\u043e \u0431\u043e\u0442\u0430.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <code>pip install selenium<\/code> \u0438 <code>pip install fake_useragent<\/code>. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 user-agent? <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/User-Agent\" rel=\"nofollow\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f MDN<\/a> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<blockquote><p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0430 User-Agent\u00a0\u2014 \u044d\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0443\u0437\u043b\u0430\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u0438\/\u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044e \u0430\u0433\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0437\u0430\u043f\u0440\u043e\u0441.<\/p><\/blockquote>\n<p>  \u041c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0438\u0434\u0435\u0435\u0439 \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438\/\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438\u00a0\u2014 \u0432\u043e\u0442 \u0433\u0434\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>fake_useragent<\/code>.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"https:\/\/chromedriver.chromium.org\/\" rel=\"nofollow\">ChromeDriver<\/a>, \u0447\u0442\u043e\u0431\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c Chrome.<\/p>\n<h1>\u041a\u043e\u0434<\/h1>\n<p>  \u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Selenium \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e user-agent):<\/p>\n<pre><code class=\"python\">from fake_useragent import UserAgent from selenium import webdriver from random import randrange import time  ua = UserAgent(verify_ssl=False) user_agent = ua.random  print(&quot;USER AGENT: &quot; + user_agent)  chrome_options = webdriver.ChromeOptions() chrome_options.add_argument(&quot;user-agent=&quot; + user_agent) driver = webdriver.Chrome(chrome_options=chrome_options)<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 GUID \u0431\u043e\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0449\u0451\u043b\u043a\u0430\u0442\u044c \u043c\u044b\u0448\u044c\u044e. \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0443\u044e \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0443\u0441\u043f\u0435\u0432\u0430\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0438 \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a.<\/p>\n<pre><code class=\"python\">id = randrange(100000000000000) url = &quot;https:\/\/www.papajohnsfeedback.com\/GBR?GUID=&quot; + str(id)  print(url)  driver.get(url) time.sleep(1)  driver.find_element_by_id('NextButton').click() time.sleep(1)  driver.find_element_by_id('NextButton').click() time.sleep(1)  driver.find_element_by_xpath(&quot;\/\/div[contains(@class, 'Opt1')]\/span&quot;).click() time.sleep(1)<\/code><\/pre>\n<p>  <i>\u0427\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u043e\u0442\u0430<\/i><\/p>\n<h3>XPath<\/h3>\n<p>  XPath\u00a0\u2014 \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0443\u0437\u043b\u043e\u0432 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 HTML \u0438\u043b\u0438 XML. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u043f\u0440\u043e\u0441\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/xpather.com\/#\" rel=\"nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<\/a> \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f XPath \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u0431\u043e\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u0441\u0442\u0430\u0432\u0438\u043b Papa John\u2019s \u043e\u0446\u0435\u043d\u043a\u0438 5 \u0437\u0432\u0451\u0437\u0434 \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/5c8\/197\/cc7\/5c8197cc7ee71ecfa67a9538f73e1cc4.png\"><br \/>  <i>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 XPath<\/i> <\/p>\n<h3>\u0412\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430!<\/h3>\n<p>  \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u0434 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ee7\/367\/c31\/ee7367c31afb7481200b3b982303c38b.png\"><br \/>  <i>Papa John&#8217;s (\u0441) \u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u043f\u0440\u043e\u0441\u0430<\/i> <\/p>\n<pre><code class=\"python\">driver.find_element_by_id('NextButton').click() time.sleep(1)  code = driver.find_element_by_class_name('ValCode').get_attribute(&quot;innerHTML&quot;).split(' ')[2]<\/code><\/pre>\n<p>  <i> \u0418\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438<\/i> <\/p>\n<h3>\u041f\u0440\u0430\u0437\u0434\u043d\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  \u0427\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f python-\u0431\u043e\u0442 \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432. \u0412\u043e\u0442 <a href=\"https:\/\/gist.github.com\/thesanjeetc\/2e78ab31047d8c5075e947a0afbe50be\" rel=\"nofollow\">gist<\/a> \u0441 \u043a\u043e\u0434\u043e\u043c, \u0430 \u0432\u043e\u0442 \u043e\u043d \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438:<\/p>\n<div class=\"oembed\"><iframe id=\"5f8f1aba102304e11bb8d5ad\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f8f1aba102304e11bb8d5ad\"><\/iframe><\/div>\n<p>  <\/p>\n<h1>\u0421\u043f\u0430\u0441\u0438\u0431\u043e, Papa John\u2019s<\/h1>\n<p>  \u042f \u0432\u0432\u0451\u043b \u0432\u0441\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u043f\u0440\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u0435 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435 Papa John&#8217;s. \u0418 \u0432\u043e\u0442 \u043e\u043d \u2014 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0437\u0430\u043f\u0430\u0441 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u044b\u0445 \u043f\u0438\u0446\u0446\u0430-\u043f\u0430\u043b\u043e\u0447\u0435\u043a.<\/p>\n<p>  \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u043f\u0438\u0446\u0446\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0437\u044b\u0432\u044b \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u0430 \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0430 Papa John&#8217;s. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0431\u0435\u0441\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f! \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u043e\u0442\u0430 \u043c\u043d\u0435 \u0434\u0430\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u0443\u0447\u0438\u0442\u044c XPath \u0438 \u043e\u0442\u0442\u043e\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043d\u0430\u0432\u044b\u043a\u0438 Selenium.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/795\/608\/212\/795608212d2e612577cd6d359fd44308.png\"><\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043b. \u041a\u0430\u043a \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u044f \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u043b Papa John&#8217;s \u043e\u0431 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0432\u0438\u0434\u0435\u043e\u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u043c. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0438. \u041d\u043e \u043e\u043f\u0440\u043e\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u044f \u043c\u043e\u0433 \u0431\u044b \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043a\u0430\u0437 1000 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u044b\u0445 \u043f\u0438\u0446\u0446 \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 Papa John&#8217;s \u043f\u043e \u0432\u0441\u0435\u0439 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438 \u0438 \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443 \u043f\u043e\u0432\u0435\u0440\u0433\u043d\u0443\u0442\u044c \u0441\u0435\u0442\u044c Papa John&#8217;s \u0432 \u0431\u0435\u0437\u0443\u043c\u0438\u0435. \u041c\u043e\u0436\u0435\u0442\u0435 \u0441\u0435\u0431\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043d\u0438\u043a \u0431\u044b \u0445\u0430\u043e\u0441?<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u0432\u0441\u0435\u043b\u0435\u043d\u043d\u043e\u0439.<\/p><\/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\/524346\/\"> https:\/\/habr.com\/ru\/post\/524346\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<h1>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0433\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u0441 \u043f\u044b\u0442\u043b\u0438\u0432\u044b\u043c \u0443\u043c\u043e\u043c<\/h1>\n<p>  \u041d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u0432\u044b, \u0430 \u044f \u043e\u0431\u043e\u0436\u0430\u044e \u043f\u0438\u0446\u0446\u0443. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0435 \u0447\u0435\u0441\u043d\u043e\u0447\u043d\u044b\u0435 \u043f\u0438\u0446\u0446\u0430-\u043f\u0430\u043b\u043e\u0447\u043a\u0438 Papa John\u2019s. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0431\u044b\u043b \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0430\u0437\u0430 \u0435\u0434\u044b \u043d\u0430\u0432\u044b\u043d\u043e\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442 \u043d\u0438\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0438\u0441\u044c\u043c\u043e:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/26b\/46e\/a9a\/26b46ea9a58f6b0920dc74227ae5bf58.png\"><br \/>  <i>Papa John\u2019s (\u0441) \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0438\u0441\u044c\u043c\u0430 \u0441 \u043e\u043f\u0440\u043e\u0441\u043e\u043c<\/i> <\/p>\n<p>  \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0435\u0434\u0430! \u041c\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u043e\u043f\u0440\u043e\u0441\u2026  <\/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-311776","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311776","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=311776"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311776\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}