{"id":331373,"date":"2021-02-08T01:13:04","date_gmt":"2021-02-07T17:13:04","guid":{"rendered":"http:\/\/4563.org\/?p=331373"},"modified":"2021-02-08T01:13:04","modified_gmt":"2021-02-07T17:13:04","slug":"%e5%b0%9d%e8%af%95%e7%94%a8-chrome-devtools-protocol-%e4%bb%a3%e6%9b%bf-selenium%e3%80%81pyppeteer-%e8%bf%9b%e8%a1%8c%e7%88%ac%e8%99%ab%e4%bb%bb%e5%8a%a1%ef%bc%8c%e5%ba%94%e8%af%a5%e5%a6%82%e4%bd%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=331373","title":{"rendered":"\u5c1d\u8bd5\u7528 Chrome Devtools Protocol \u4ee3\u66ff selenium\u3001pyppeteer \u8fdb\u884c\u722c\u866b\u4efb\u52a1\uff0c\u5e94\u8be5\u5982\u4f55\u5b66\u4e60\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5c1d\u8bd5\u7528 Chrome Devtools Protocol \u4ee3\u66ff selenium\u3001pyppeteer \u8fdb\u884c\u722c\u866b\u4efb\u52a1\uff0c\u5e94\u8be5\u5982\u4f55\u5b66\u4e60\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Ginson <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        selenium \u5360\u7528\u5927\uff0cpyppeteer \u957f\u671f\u4e0d\u66f4\u65b0\uff0c\u56e0\u6b64\u5f88\u591a\u4eba\u63a8\u8350\u7528 Chrome Devtools Protocol \u6765\u4ee3\u66ff\u8fd9\u4e24\u4e2a\u5e93\u8fdb\u884c\u722c\u866b\u4efb\u52a1\u3002\u60f3\u8bf7\u6559\u4e0b\u5927\u5bb6\u8981\u600e\u4e48\u5feb\u901f\u4e0a\u624b cpd \u7684\u76f8\u5173\u77e5\u8bc6\u5462<\/p>\n<p>\u641c\u7d22\u5b66\u4e60\u8d44\u6599\u7684\u65f6\u5019\u53d1\u73b0\u76f8\u5173\u4fe1\u606f\u4e0d\u591a\uff0c\u770b\u67d0\u4f4d\u5927\u4f6c\u5199\u7684\u300a\u6df1\u5165\u6d45\u51fa CDP (Chrome DevTools Protocol)\u300b https:\/\/clericpy.github.io\/blog\/posts\/20200114151137\/ \uff0c\u4f46\u611f\u89c9\u8fd8\u662f\u5f88\u61f5\u3002      <\/p><\/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=\"5150948\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzlock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/i.loli.net\/2021\/01\/29\/HXiUpy1LkA25F9D.png<br \/>\u6709\u5728\u7ef4\u62a4\u7684\u554a\uff0cpyppeteer\/pyppeteer \u5728 21 \u5929\u524d\u6709 updated<\/p>\n<p>https:\/\/pypi.org\/project\/pyppeteer\/#history<br \/>pip \u4e0a\u7684 pyppeteer \u5728 1 \u6708 8 \u53f7\u8fd8\u53d1\u5e03\u4e86 0.2.5 \u7248\u672c\u5462<\/p>\n<p>\u8ddf\u4e3b\u6240\u8bf4\u7684\u201c\u957f\u671f\u4e0d\u66f4\u65b0\u201d\u7684\u60c5\u51b5\u76f8\u6096\uff0c\u8fd9\u4e2d\u95f4\u662f\u4e0d\u662f\u6709\u4ec0\u4e48\u8bef\u4f1a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5150949\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/pyppeteer\/pyppeteer \u4ece https:\/\/github.com\/miyakogi\/pyppeteer \u4e2a\u4eba\u9879\u76ee\u8fc1\u79fb\u5230\u7ec4\u7ec7\u7ef4\u62a4\u4e86, \u5b9e\u9645\u4e0a\u662f\u4fdd\u6301\u66f4\u65b0\u7684, \u5df2\u7ecf\u57fa\u672c\u7b97\u662f\u51c6\u5b98\u65b9\u7684 Google puppeteer Python \u79fb\u690d\u4e86, \u793e\u533a\u7ef4\u62a4\u70ed\u5ea6\u6bd4\u8f83\u9ad8, \u4e09\u5468\u524d\u6709\u4ee3\u7801\u66f4\u65b0, \u6ca1\u6709\u957f\u671f\u4e0d\u66f4\u65b0\u4e00\u8bf4<\/p>\n<p>\u4e0e\u4e4b\u76f8\u5bf9\u5e94\u7684\u4e3b\u6d41\u9009\u62e9\u5c31\u662f\u5fae\u8f6f\u4ece https:\/\/github.com\/microsoft\/playwright \u79fb\u690d\u8fc7\u6765\u7684 https:\/\/github.com\/microsoft\/playwright-python playwright \u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u7c7b\u4f3c puppeteer \u7684\u4e00\u5957\u811a\u624b\u67b6, \u9664\u4e86 Blink \u5185\u6838\u7684\u6d4f\u89c8\u5668, \u597d\u50cf\u8fd8\u6709\u706b\u72d0\u7b49\u5176\u4ed6\u5185\u6838<\/p>\n<p>\u4ee5\u4e0a\u4e24\u8005\u90fd\u662f\u6b63\u89c4\u519b\u5165\u573a\u751f\u6001\u6bd4\u8f83\u5b8c\u5584\u7684\u9009\u62e9<\/p>\n<p>selenium \u62ff\u6765\u5199\u722c\u866b\u662f\u56e0\u4e3a\u57f9\u8bad\u73ed\u8f6f\u6587\u8f83\u591a, \u770b\u770b\u5c31\u7b97\u4e86<\/p>\n<p>\u81f3\u4e8e\u4e3b\u63d0\u5230\u7684\u535a\u5ba2, \u5b9e\u9645\u4e0a\u5c31\u662f\u5e94\u4ed8\u9762\u8bd5\u51fa\u7684\u5feb\u9910\u4ea7\u7269, \u91cc\u9762\u63d0\u5230\u7684 ichrome \u5176\u5b9e\u662f\u5728\u4e0a\u73ed\u65f6\u5019\u81ea\u5df1\u6478\u7d22 CDP (2017 \u5e74\u4e5f\u6ca1\u6709\u8f6e\u5b50\u53ef\u9009) \u505a\u8fc7\u7684\u4ee3\u7801\u91cd\u6784\u6210\u6846\u67b6\u6765\u7528\u7684, \u76ee\u524d\u5728\u65b0\u5de5\u4f5c\u91cc\u9762\u4e0a\u751f\u4ea7\u73af\u5883\u53d1\u73b0\u4e86\u5f88\u591a bug, \u867d\u7136\u57fa\u672c\u90fd\u4fee\u590d\u4e86, \u4f46\u662f\u5e95\u5c42\u67b6\u6784\u7684\u8bbe\u8ba1\u5c42\u9762\u90fd\u4e0d\u6210\u719f, \u76ee\u524d\u62ff\u6765\u505a\u4e00\u4e9b\u4e0d\u592a\u590d\u6742\u7684\u5c0f\u9879\u76ee\u6ca1\u4ec0\u4e48\u95ee\u9898<\/p>\n<p>\u603b\u4e4b\u4e00\u53e5\u8bdd\u6982\u62ec CDP \u5c31\u662f\u901a\u8fc7 Websocket \u7ed9\u5f00\u542f\u8fdc\u7a0b\u8c03\u8bd5\u63a5\u53e3\u7684 Chrome \u8fdb\u7a0b\u53d1\u9001\u6307\u4ee4\u8fdb\u884c\u64cd\u4f5c\u6807\u7b7e\u7684\u534f\u8bae, \u6240\u6709\u8fd4\u56de\u7ed3\u679c\u6216\u8005\u4e8b\u4ef6\u4e5f\u53ef\u4ee5\u5728 WS \u91cc\u6536\u5230, \u81f3\u4e8e\u7528\u54ea\u4e2a\u8f6e\u5b50\u90fd\u65e0\u6240\u8c13                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5150950\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Ginson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ClericPy \u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5c1d\u8bd5\u7528 Chrome Devtoo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/331373"}],"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=331373"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/331373\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=331373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=331373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=331373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}