{"id":99640,"date":"2020-04-17T17:59:40","date_gmt":"2020-04-17T09:59:40","guid":{"rendered":"http:\/\/4563.org\/?p=99640"},"modified":"2020-04-17T17:59:40","modified_gmt":"2020-04-17T09:59:40","slug":"%e8%bf%ab%e4%ba%8e%e8%80%81%e5%a9%86%e8%a6%81%e4%b9%b0%e8%a1%a3%e6%9c%8d%ef%bc%8c%e5%86%99%e4%ba%86%e4%b8%aa-serverless-%e7%9a%84-selenium-%e7%8e%a9%e5%85%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=99640","title":{"rendered":"\u8feb\u4e8e\u8001\u5a46\u8981\u4e70\u8863\u670d\uff0c\u5199\u4e86\u4e2a serverless \u7684 selenium \u73a9\u5177"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8feb\u4e8e\u8001\u5a46\u8981\u4e70\u8863\u670d\uff0c\u5199\u4e86\u4e2a serverless \u7684 selenium \u73a9\u5177               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <span><i><\/i> 65<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9879\u76ee\u5728\u8fd9\u513f\uff1a https:\/\/github.com\/leishi1313\/serverless-web-differ<\/p>\n<p>\u4e3b\u8981\u7528\u9014\u5c31\u662f\u53ef\u4ee5\u5728\u4e91\u7aef\u6709\u4e2a\u65e0\u5934\u6d4f\u89c8\u5668\u4e0d\u65ad\u5730\u5e2e\u4f60\u67e5\u770b\u4f60\u60f3\u67e5\u770b\u7684\u9875\u9762\uff0c\u4e00\u65e6\u53d1\u73b0\u6709\u4e0d\u540c\uff0c\u53ef\u4ee5\u901a\u8fc7 Email\uff0cServer \u9171\u4e4b\u7c7b\u7684\u53d1\u9001\u901a\u77e5\u3002\u56e0\u4e3a\u662f serverless \u7684\uff0c\u6240\u4ee5\u53ef\u4ee5\u5f88\u7701\u5fc3\uff0c\u4e0d\u7528\u62c5\u5fc3\u670d\u52a1\u4e0b\u7ebf\uff08\u5176\u5b9e\u6211\u5c31\u662f\u60f3\u8fd9\u4e48\u73a9\u73a9\u770b\uff09\u3002<\/p>\n<p>\u6280\u672f\u4e0a\u4e3b\u8981\u57fa\u4e8eServerless&amp;AWS Lambda\uff0c\u8fd8\u6709\u5c31\u662f Selenium\u3002\u6240\u4ee5\u672c\u8eab\u5c31\u7981 Selenium \u7684\u51e0\u4e2a\u7f51\u7ad9\uff1a\u6dd8\u5b9d\u3001\u77e5\u4e4e\u3001\u5927\u4f17\u70b9\u8bc4\u7b49\u7b49\u8fd8\u662f\u722c\u4e0d\u4e86\uff08\u6216\u8005\u8bf4\u8981\u591a\u8d39\u70b9\u624b\u6bb5\uff09\uff0c\u53cd\u6b63\u6211\u7684\u9700\u6c42\u53ea\u8981\u80fd\u591f\u722c\u8001\u5a46\u7684\u51e0\u4e2a\u5356\u8863\u670d\u7f51\u7ad9\u5c31 OK\uff0c\u6240\u4ee5\u5c31\u5148\u8fd9\u6837\u4e86\u3002\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u914d\u7f6e\u4e00\u4e0b\u73a9\u73a9\u770b<\/p>\n<p>\u8fc7\u4e24\u5929\u518d\u505a\u4e2a docker image\uff0c\u66f4\u901a\u7528\u4e00\u4e9b<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"754957\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : greatghoul <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u771f\u7684\u6709\u8001\u5a46\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754958\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : precisi0nux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7070\u673a\u676f\u597d\u8bc4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754959\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pcbl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u4ece\u6dd8\u5b9d\u4e70\u8863\u670d\u7684\u8001\u5a46\u4e0d\u662f\u597d\u8001\u5a46                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754960\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SquirrelMAN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u8fd1\u6b63\u597d\u6709\u7c7b\u4f3c\u9700\u6c42 \u652f\u6301                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754961\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JCZ2MkKb5S8ZX9pq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf7\u95ee selenium \u73b0\u5728\u53ef\u4ee5\u7a81\u7834 taobao \u4e86\u561b\uff1f<br \/>\u4e4b\u524d\u4e0d\u4f1a\u52a0 header \u88ab\u8bc6\u522b\u8fc7\uff0c\u540e\u6765\u4e5f\u6ca1\u518d\u8bd5\u8fc7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754962\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JCZ2MkKb5S8ZX9pq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6c57\uff0c\u521a\u770b\u5230\u8be6\u60c5\u4e86\uff0c\u6253\u6270\u4e86\u3002<br \/>\u975e\u6dd8\u5b9d\u7684\u8bdd\u76f4\u63a5 requests \u66f4\u8f7b\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754963\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : controller <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6563\u4e86\u6563\u4e86\uff0c\u8981\u8001\u5a46\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754964\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @JCZ2MkKb5S8ZX9pq \u5927\u90e8\u5206\u8d2d\u7269\u7f51\u7ad9\u5149 requests \u662f\u4e0d\u884c\u7684\u3002\u518d\u8bf4\u9760 selenium \u7684\u8bdd\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u7f51\u9875\u901a\u8fc7 xpath \u5f97\u5230\u4ef7\u683c\uff0c\u7528 requests \u8fd8\u5f97\u4e00\u4e2a\u4e2a\u8d39\u52b2\u5730\u627e\u4ef7\u683c\u5bf9\u5e94\u7684 API \u662f\u4ec0\u4e48\u3002\u7406\u60f3\u72b6\u6001\u4e0b\u52a0\u76d1\u63a7\u7684\u7f51\u7ad9\u53ea\u9700\u8981\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7136\u540e\u91cd\u65b0 deploy \u5c31\u53ef\u4ee5\u4e86\uff0c\u4ee3\u7801\u90fd\u4e0d\u9700\u8981\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754965\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @greatghoul <br \/>@controller \u8981\u7684\u8981\u8001\u5a46\u7684\uff0c\u800c\u4e14\u8fd8\u5f97\u80cc\u7740\u6bcf\u6708\u6536\u5165-100%\u7684 debuff                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754966\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : haozes <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             puppeteer \u4ed6\u4eec\u80fd\u9632\u5f97\u4f4f\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754967\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @haozes \u80fd\u7684\uff0c\u53ea\u8981\u60f3\u9632\u4ec0\u4e48\u90fd\u80fd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754968\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : myqoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @haozes ofcourse                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754969\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pincoudeduanyin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5565\u610f\u601d\uff0c\u8fd9\u4e2a\u6709\u4ec0\u4e48\u7528\u5904\uff0c\u4e0d\u592a\u61c2&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754970\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pincoudeduanyin \u770b\u4e0d\u61c2\u5c31\u662f\u7528\u4e0d\u4e0a\uff0c\u70b9\u4e2a\u661f\u661f\u5c31\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754971\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ohoh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8bb0\u5f97\u6709\u4e2a chrome \u63d2\u4ef6\u5e72\u8fd9\u4e2a\u7684, \u76f8\u5f53\u5f3a\u5927, \u529f\u80fd\u4e5f\u8d85\u591a, \u4f46\u662f<br \/> \u6211 \u4e0d\u8bb0\u5f97\u4e5f\u627e\u4e0d\u5230\u8fd9\u63d2\u4ef6\u53eb\u5565\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"754972\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imdoge <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @leishi1313 \u6dd8\u5b9d\u6ca1\u8bd5\u8fc7\uff0c\u77e5\u4e4e\u8bd5\u8fc7\uff0c\u9632\u4e0d\u4f4f\u7684\uff0c\u65e0\u975e\u662f\u6b63\u786e\u7684 ua\uff0chttp \u5934\uff0c\u8fd8\u6709 webdriver \u7b49\u5b57\u6bb5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8feb\u4e8e\u8001\u5a46\u8981\u4e70\u8863\u670d\uff0c\u5199\u4e86\u4e2a serv&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\/99640"}],"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=99640"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99640\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99640"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}