{"id":552021,"date":"2022-01-30T22:37:22","date_gmt":"2022-01-30T14:37:22","guid":{"rendered":"http:\/\/4563.org\/?p=552021"},"modified":"2022-01-30T22:37:22","modified_gmt":"2022-01-30T14:37:22","slug":"%e6%b1%82%e5%8a%a9%ef%bc%9a-selenium-chrome-%e6%a8%a1%e6%8b%9f%e7%9c%9f%e5%ae%9e%e8%af%b7%e6%b1%82-dhl-%e8%b7%9f%e8%b8%aa%e6%95%b0%e6%8d%ae%e8%bf%94%e5%9b%9e-access-denied-%e6%80%8e%e4%b9%88%e7%a0%b4","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=552021","title":{"rendered":"\u6c42\u52a9\uff1a selenium chrome \u6a21\u62df\u771f\u5b9e\u8bf7\u6c42 DHL \u8ddf\u8e2a\u6570\u636e\u8fd4\u56de Access Denied \u600e\u4e48\u7834\uff1f\u4f7f\u7528\u968f\u673a\u4ee3\u7406+\u968f\u673a UA \u4ecd\u7136\u4e0d\u884c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> \u6c42\u52a9\uff1a selenium chrome \u6a21\u62df\u771f\u5b9e\u8bf7\u6c42 DHL \u8ddf\u8e2a\u6570\u636e\u8fd4\u56de Access Denied \u600e\u4e48\u7834\uff1f\u4f7f\u7528\u968f\u673a\u4ee3\u7406+\u968f\u673a UA \u4ecd\u7136\u4e0d\u884c <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yasea <\/span>  <span><i><\/i> 16<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> chrome_options = webdriver.ChromeOptions()<br \/>chrome_options.add_argument(&#8216;&#8211;disable-gpu&#8217;)# win \u5fc5\u987b\u4f7f\u7528\u8be5\u9009\u9879<br \/>chrome_options.add_argument(&#8216;log-level=2&#8217;)#\u5c4f\u853d\u65e5\u5fd7<br \/>chrome_options.add_argument(&#8216;&#8211;disable-software-rasterizer&#8217;)<br \/>chrome_options.add_argument(&#8220;&#8211;disable-extensions&#8221;)<br \/>chrome_options.add_argument(&#8216;&#8211;disable-logging&#8217;)<br \/>chrome_options.add_argument(&#8216;&#8211;ignore-certificate-errors&#8217;)<br \/>chrome_options.add_argument(&#8216;&#8211;ignore-ssl-errors&#8217;)<br \/>chrome_options.add_argument(&#8216;&#8211;no-sandbox&#8217;)<br \/>chrome_options.add_argument(&#8220;&#8211;window-size=1220,800&#8221;) <br \/>chrome_options.add_argument(&#8216;user-agent=&#8217; + spider_utils.get_ua())<br \/>chrome_options.add_argument(&#8216;&#8211;proxy-server={0}&#8217;.format(proxy_ip)) <br \/>prefs = {<br \/>&#8216;profile.default_content_setting_values&#8217; : {<br \/> &#8216;notifications&#8217; : 2<br \/> }<br \/>} <br \/>chrome_options.add_experimental_option(&#8216;prefs&#8217;,prefs)<br \/>\u524d\u51e0\u4e2a\u6708\u662f\u80fd\u6b63\u5e38\u5de5\u4f5c\u7684\uff0c \u6700\u8fd1\u4e0d\u597d\u4f7f\u4e86\uff0c \u6709\u7ecf\u9a8c\u7684\u670b\u53cb\uff0c\u8bf7\u5e2e\u5fd9\u7785\u7785  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7163742\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yasea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8865\u5145\u4e00\u4e0b\uff0c\u5199\u722c\u866b\u7684\u4e3b\u8981\u76ee\u7684\u662f\u5bf9\u7269\u6d41\u5355\u53f7\u7684 DHL \u8ddf\u8e2a\u6570\u636e\u6279\u91cf\u622a\u56fe\u4fdd\u5b58\uff0c\u56e0\u4e3a\u5b98\u65b9\u53ea\u652f\u6301\u67e5\u8be2\u8fd1 3 \u4e2a\u6708\u7684\u6570\u636e\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7163743\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dicc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> add_argument data-dir \u8fd9\u4e2a\u76ee\u5f55\u6307\u5411\u4f60 chrome \u771f\u5b9e\u7684\u6570\u636e\u76ee\u5f55 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7163744\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yasea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @dicc \u8c22\u8c22\uff0c\u4e2d\u5348\u6d4b\u8bd5\u4e86\u4e0b\uff0c \u4f9d\u7136\u88ab\u53cd\u722c\u4e86\uff0c\u6709\u65f6\u5019\u8fd4\u56de Access Denied \uff0c \u6709\u65f6\u5019\u8fd4\u56de\u8fd9\u4e2a\uff1a<br \/>Your tracking attempt has been blocked<br \/>Please note that the tracking status information on this website is intended for human consumption via the website only. It is not intended to be used for integration with your systems. Automated extraction of information by bots, website scraping etc. is prohibited. <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u52a9\uff1a selenium chro&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/552021"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552021"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/552021\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552021"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}