{"id":423,"date":"2021-02-27T17:37:04","date_gmt":"2021-02-27T11:37:04","guid":{"rendered":"http:\/\/www.jichangqing.net\/wordpress\/?p=423"},"modified":"2021-02-27T17:37:04","modified_gmt":"2021-02-27T11:37:04","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9%e7%b9%81%e7%90%90%e5%b7%a5%e4%bd%9c%e8%87%aa%e5%8a%a8%e5%8c%96%ef%bc%9a%e8%81%8a%e8%81%8apython%e4%b8%8erpa","status":"publish","type":"post","link":"http:\/\/www.jichangqing.net\/wordpress\/?p=423","title":{"rendered":"\u5982\u4f55\u8ba9\u7e41\u7410\u5de5\u4f5c\u81ea\u52a8\u5316\uff1a\u804a\u804aPython\u4e0eRPA"},"content":{"rendered":"<p style=\"color: #121212;\">RPA\uff0c\u662fRobotic Process Automation\u7684\u82f1\u6587\u7f29\u5199\uff0c\u4e2d\u6587\u662f\u673a\u5668\u4eba\u6d41\u7a0b\u81ea\u52a8\u5316\uff0c\u5229\u7528\u8f6f\u4ef6\u5c06\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u81ea\u52a8\u5316\u3002\u57fa\u672c\u76ee\u6807\u662f\u8ba9\u4eba\u4ece\u91cd\u590d\u6027\u5f3a\u7684\u7e41\u7410\u5de5\u4f5c\u4e2d\u89e3\u653e\u51fa\u6765\u53bb\u505a\u66f4\u6709\u610f\u4e49\u66f4\u5177\u521b\u9020\u6027\u7684\u5de5\u4f5c\u3002\u6bd4\u5982\u81ea\u52a8\u722c\u53d6\u7f51\u7ad9\u5185\u5bb9\u3001\u5c06\u5341\u51e0\u4e2aExcel\u4e2d\u6570\u636e\u5408\u5e76\u5206\u6790\u3001\u5b9a\u65f6\u53d1\u9001\u90ae\u4ef6\u7b49\u90fd\u662f\u7b80\u5355\u7684RPA\u5e94\u7528\u7684\u4f8b\u5b50\u3002<\/p>\n<p style=\"color: #121212;\">\u52a0\u4e0a\u5982\u4ecaAI\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u80fd\u6781\u5927\u5730\u6269\u5c55\u8f6f\u4ef6\u81ea\u52a8\u5316\u7684\u5e94\u7528\u8303\u56f4\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u529f\u80fd\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u56fe\u50cf\u8bc6\u522b\u3001\u8bed\u4e49\u7406\u89e3\u7b49\u6280\u672f\u5c06\u56fe\u7247\u3001\u7279\u5b9a\u683c\u5f0f\u7684\u6587\u6863\u7b49\u975e\u7ed3\u6784\u5316\u6570\u636e\u8f6c\u6362\u4e3a\u7ed3\u6784\u5316\u6570\u636e\uff0c\u81ea\u52a8\u63d0\u4ea4\u5230\u6570\u636e\u4e2d\u5fc3\uff0c\u7136\u540e\u57fa\u4e8e\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u5b9a\u65f6\u5206\u6790\u7ed3\u679c\u751f\u6210\u62a5\u8868\u5e76\u53d1\u9001\u5230\u90ae\u7bb1\u3002<\/p>\n<p style=\"color: #121212;\">RPA\u7684\u672c\u8d28\u662f\u8ba9\u8ba1\u7b97\u673a\u81ea\u52a8\u4e3a\u4eba\u670d\u52a1\uff0cRPA\u5c31\u50cf\u4e00\u4e2a\u7c98\u5408\u5242\uff0c\u901a\u8fc7RPA\u4eba\u4e0d\u9700\u8981\u5bf9\u8ba1\u7b97\u673a\u64cd\u4f5c\u7ec6\u8282\uff0c\u53ea\u9700\u8981\u6307\u6325\u8ba1\u7b97\u673a\u6267\u884c\u67d0\u4e2a\u4efb\u52a1\u5c31\u884c\u4e86\u3002<\/p>\n<p style=\"color: #121212;\">\u73b0\u5728\u56fd\u5185\u5916\u6709\u4e0d\u5c11\u529f\u80fd\u5728\u7814\u53d1RPA\u8f6f\u4ef6\u7528\u4e8e\u5b9e\u73b0\u6d41\u7a0b\u81ea\u52a8\u8bdd\u3002\u4f46\u4f5c\u4e3a\u4e00\u4e2aPython\u7a0b\u5e8f\u5458\uff0c\u6211\u89c9\u5f97Python\u662f\u5b9e\u73b0RPA\u7684\u5929\u7136\u5de5\u5177\u3002<\/p>\n<p style=\"color: #121212;\">Python\u4f5c\u4e3aRPA\u5de5\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<p style=\"color: #121212;\">\u4e00\u65b9\u9762\uff0cPython\u8bed\u6cd5\u7b80\u5355\uff0c\u5bb9\u6613\u4e0a\u624b\u3002\u800c\u4e14\u65e9\u671fPython\u8d77\u6e90\u5c31\u662f\u4f5c\u4e3ac\u8bed\u8a00\u548cshell\u811a\u672c\u4e4b\u95f4\u7684\u4e2d\u95f4\u5c42\u800c\u88ab\u5f00\u53d1\u51fa\u6765\uff08\u8be6\u89c1<a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/mp.weixin.qq.com\/s\/A0RqDhmsdtj46V_pA_5V5g\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u6f2b\u753bPython\u4e09\u5341\u5e74<\/a>\uff09\uff0c\u53ef\u89c1\u5b83\u672c\u8eab\u5c31\u6709\u8fd9\u65b9\u9762\u7684\u57fa\u56e0\uff1b<\/p>\n<p style=\"color: #121212;\">\u53e6\u4e00\u65b9\u9762\uff0cPython\u5e94\u7528\u8303\u56f4\u5e7f\u9614\uff0c\u5305\u62ec\u7cfb\u7edf\u7ba1\u7406\u3001\u6587\u4ef6\u5904\u7406\u3001\u90ae\u4ef6\u53d1\u9001\u3001\u673a\u5668\u5b66\u4e60\u3001\u6df1\u5ea6\u5b66\u4e60\u7b49\uff0c\u57fa\u672c\u4e0a\u90fd\u6709\u514d\u8d39\u5f00\u6e90\u7684\u7c7b\u5e93\u53ef\u4ee5\u4f7f\u7528\uff0cRPA\u9700\u8981\u7684\u529f\u80fdPython\u57fa\u672c\u4e0a\u90fd\u53ef\u4ee5\u652f\u6301\uff0c\u4e0d\u9700\u8981\u81ea\u5df1\u518d\u91cd\u65b0\u5f00\u53d1\u3002<\/p>\n<p style=\"color: #121212;\">\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u57fa\u4e8ePython\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u5b9a\u5236\u4e00\u5957\u5f3a\u5927\u7684\u81ea\u52a8\u5316\u7cfb\u7edf\u3002\u4f46\u6839\u636e\u4e1a\u52a1\u4e0d\u540c\u5b9e\u73b0\u65b9\u5f0f\u4e5f\u4e0d\u80fd\u4e00\u6982\u800c\u8bba\u3002\u8fd9\u91cc\u6536\u96c6\u6574\u7406\u4e86\u51e0\u4e2a\u5e38\u7528\u81ea\u52a8\u5316\u5904\u7406\u5de5\u5177\u5e93\u4f9b\u5927\u5bb6\u53c2\u8003\u5b66\u4e60\uff0c\u80fd\u529b\u6709\u9650\uff0c\u4e0d\u8db3\u4e4b\u5904\u8bf7\u591a\u6307\u6b63\u3002<\/p>\n<p style=\"color: #121212;\">\u6982\u8981\u5982\u4e0b\u56fe\uff1a<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic2.zhimg.com\/80\/v2-8321281794dc09b8df5a1e68013c6045_720w.jpg\" alt=\"\" width=\"1254\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1254\" data-rawheight=\"1080\" data-original=\"https:\/\/pic2.zhimg.com\/v2-8321281794dc09b8df5a1e68013c6045_r.jpg\" data-actualsrc=\"https:\/\/pic2.zhimg.com\/v2-8321281794dc09b8df5a1e68013c6045_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-394c552967cb8cddc9fadd0c4be984a6_720w.jpg\" alt=\"\" width=\"1398\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1398\" data-rawheight=\"628\" data-original=\"https:\/\/pic3.zhimg.com\/v2-394c552967cb8cddc9fadd0c4be984a6_r.jpg\" data-actualsrc=\"https:\/\/pic3.zhimg.com\/v2-394c552967cb8cddc9fadd0c4be984a6_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<h2 style=\"font-weight: 600; color: #121212;\">1.Excel\u81ea\u52a8\u5316<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u529f\u80fd<\/span>\uff1a\u5b9e\u73b0\u5bf9excel\u6587\u4ef6\u7684\u589e\u5220\u6539\u5199\u3001\u683c\u5f0f\u4fee\u6539\u7b49<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1axlwings\u3001xlrd\u3001xlwt<\/p>\n<ul style=\"color: #121212;\">\n<li>xlrd\u7528\u4e8e\u8bfbExcel\u6587\u4ef6(<a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/xlrd.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a>)<\/li>\n<li>xlwt\u7528\u4e8e\u5199Excel\u6587\u4ef6(<a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/xlwt.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a>)<\/li>\n<li>xlwings\u5b9e\u73b0\u4e86Excel\u4e2d\u8c03\u7528Python\uff0cpython\u4e2d\u8c03\u7528Excel\u7684\u9a9a\u64cd\u4f5c\uff0c\u8fd8\u652f\u6301VBA\u3002\uff08<a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/www.xlwings.org\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a>\uff09<\/li>\n<\/ul>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic4.zhimg.com\/80\/v2-cc1e2a5aa80d7a71e54081a2cc06eb2b_720w.jpg\" alt=\"\" width=\"2753\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"2753\" data-rawheight=\"1080\" data-original=\"https:\/\/pic4.zhimg.com\/v2-cc1e2a5aa80d7a71e54081a2cc06eb2b_r.jpg\" data-actualsrc=\"https:\/\/pic4.zhimg.com\/v2-cc1e2a5aa80d7a71e54081a2cc06eb2b_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<h2 style=\"font-weight: 600; color: #121212;\">2. Word\u81ea\u52a8\u5316<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u5bf9word\u6587\u4ef6\u7684\u589e\u5220\u6539\u5199\u3001\u683c\u5f0f\u4fee\u6539\u7b49<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1apython-docx<\/p>\n<p style=\"color: #121212;\">\u5b98\u65b9\u793a\u4f8b\uff1a<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-dbb82ad1a64f19ccc8dc251dad87afde_720w.jpg\" alt=\"\" width=\"1171\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1171\" data-rawheight=\"1080\" data-original=\"https:\/\/pic3.zhimg.com\/v2-dbb82ad1a64f19ccc8dc251dad87afde_r.jpg\" data-actualsrc=\"https:\/\/pic3.zhimg.com\/v2-dbb82ad1a64f19ccc8dc251dad87afde_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/python-docx.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">3. PPT\u81ea\u52a8\u5316<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u5bf9PPT\u7684\u521b\u5efa\u548c\u4fee\u6539<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1apython-pptx<\/p>\n<p style=\"color: #121212;\">\u7b80\u5355\u793a\u4f8b\uff1a<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-da1e110a80219d38ae02a436d7806454_720w.jpg\" alt=\"\" width=\"1754\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1754\" data-rawheight=\"1080\" data-original=\"https:\/\/pic1.zhimg.com\/v2-da1e110a80219d38ae02a436d7806454_r.jpg\" data-actualsrc=\"https:\/\/pic1.zhimg.com\/v2-da1e110a80219d38ae02a436d7806454_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p class=\"ztext-empty-paragraph\" style=\"color: #121212;\">\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/python-pptx.readthedocs.io\/en\/latest\/user\/quickstart.html\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">4. \u90ae\u4ef6\u81ea\u52a8\u5316<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u6784\u9020\u90ae\u4ef6\u548c\u53d1\u9001\u90ae\u4ef6<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1asmtplib\u548cemail<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">smtplib<\/span>\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f88\u65b9\u4fbf\u7684\u9014\u5f84\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002\u5b83\u5bf9smtp\u534f\u8bae\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u5c01\u88c5\u3002\u4f7f\u7528\u5982\u4e0b\uff1a<\/p>\n<div class=\"highlight\" style=\"color: #121212;\">\n<pre><code class=\"language-text\">import smtplib\r\n\r\nsmtp = smtplib.SMTP( [host [, port [, local_hostname]]] )\r\n<\/code><\/pre>\n<\/div>\n<p style=\"color: #121212;\">\u5176\u4e2d\u53c2\u6570\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n<ul style=\"color: #121212;\">\n<li>host: SMTP \u670d\u52a1\u5668\u4e3b\u673a\u3002 \u4f60\u53ef\u4ee5\u6307\u5b9a\u4e3b\u673a\u7684ip\u5730\u5740\u6216\u8005\u57df\u540d\u5982:\u00a0<a class=\" external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/runoob.com\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\"><span class=\"invisible\" style=\"color: transparent;\">http:\/\/<\/span><span class=\"visible\">runoob.com<\/span><\/a>\uff0c\u8fd9\u4e2a\u662f\u53ef\u9009\u53c2\u6570\u3002<\/li>\n<li>port: \u5982\u679c\u4f60\u63d0\u4f9b\u4e86 host \u53c2\u6570, \u4f60\u9700\u8981\u6307\u5b9a SMTP \u670d\u52a1\u4f7f\u7528\u7684\u7aef\u53e3\u53f7\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b SMTP \u7aef\u53e3\u53f7\u4e3a25\u3002<\/li>\n<li>local_hostname: \u5982\u679c SMTP \u5728\u4f60\u7684\u672c\u673a\u4e0a\uff0c\u4f60\u53ea\u9700\u8981\u6307\u5b9a\u670d\u52a1\u5668\u5730\u5740\u4e3a localhost \u5373\u53ef\u3002<\/li>\n<\/ul>\n<p style=\"color: #121212;\">\u7136\u540e\u4f7f\u7528sendmail\u53d1\u9001\u90ae\u4ef6\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<div class=\"highlight\" style=\"color: #121212;\">\n<pre><code class=\"language-text\">smtp.sendmail(from_addr, to_addrs, msg[, mail_options, rcpt_options])\r\n<\/code><\/pre>\n<\/div>\n<p style=\"color: #121212;\">\u53c2\u6570\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n<ul style=\"color: #121212;\">\n<li>from_addr: \u90ae\u4ef6\u53d1\u9001\u8005\u5730\u5740\u3002<\/li>\n<li>to_addrs: \u5b57\u7b26\u4e32\u5217\u8868\uff0c\u90ae\u4ef6\u53d1\u9001\u5730\u5740\u3002<\/li>\n<li>msg: \u53d1\u9001\u6d88\u606f<\/li>\n<\/ul>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">email<\/span>\u5e93\u53ef\u4ee5\u8bfb\u53d6\u3001\u5199\u5165\u548c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<div class=\"highlight\" style=\"color: #121212;\">\n<pre><code class=\"language-text\">import smtplib\r\n\r\n# Import the email modules we'll need\r\nfrom email.message import EmailMessage\r\n\r\n# Open the plain text file whose name is in textfile for reading.\r\nwith open(textfile) as fp:\r\n    # Create a text\/plain message\r\n    msg = EmailMessage()\r\n    msg.set_content(fp.read())\r\n\r\n# me == the sender's email address\r\n# you == the recipient's email address\r\nmsg['Subject'] = f'The contents of {textfile}'\r\nmsg['From'] = me\r\nmsg['To'] = you\r\n\r\n# Send the message via our own SMTP server.\r\ns = smtplib.SMTP('localhost')\r\ns.send_message(msg)\r\ns.quit()\r\n<\/code><\/pre>\n<\/div>\n<h2 style=\"font-weight: 600; color: #121212;\">5. \u6587\u4ef6\u5904\u7406<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u6279\u91cf\u4fee\u6539\u6587\u4ef6\u7b49\u91cd\u590d\u6027\u64cd\u4f5c<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1aos<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">os<\/span>\u5e93\u63d0\u4f9b\u4e86\u4e00\u79cd\u4f7f\u7528\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u76f8\u5173\u7684\u529f\u80fd\u7684\u4fbf\u6377\u5f0f\u9014\u5f84\uff0c\u5e38\u7528\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n<p><span style=\"color: #121212;\">\u51fd\u6570\u529f\u80fd<\/span><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">6. \u722c\u866b<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u722c\u53d6\u8c46\u74e3\u3001\u77e5\u4e4e\u3001\u5fae\u535a\u7b49\u6570\u636e\u7528\u4e8e\u6570\u636e\u5206\u6790<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1arequests\u3001scrapy<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">requests<\/span>\u662f\u4e00\u4e2aPython HTTP\u5e93\uff0c\u5728Apache License 2.0\u4e0b\u53d1\u5e03\u3002\u8be5\u9879\u76ee\u7684\u76ee\u6807\u662f\u4f7fHTTP\u8bf7\u6c42\u66f4\u7b80\u5355\uff0c\u66f4\u4eba\u6027\u5316\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<div class=\"highlight\" style=\"color: #121212;\">\n<pre><code class=\"language-text\">&gt;&gt;&gt; r = requests.get('https:\/\/api.github.com\/user', auth=('user', 'pass'))\r\n&gt;&gt;&gt; r.status_code\r\n200\r\n&gt;&gt;&gt; r.headers['content-type']\r\n'application\/json; charset=utf8'\r\n&gt;&gt;&gt; r.encoding\r\n'utf-8'\r\n&gt;&gt;&gt; r.text\r\n'{\"type\":\"User\"...'\r\n&gt;&gt;&gt; r.json()\r\n{'private_gists': 419, 'total_private_repos': 77, ...}\r\n<\/code><\/pre>\n<\/div>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/requests.readthedocs.io\/en\/master\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">Scrapy<\/span>\u00a0\u662f\u7528Python \u5b9e\u73b0\u7684\u4e00\u4e2a\u4e3a\u4e86\u722c\u53d6\u7f51\u7ad9\u6570\u636e\u3001\u63d0\u53d6\u7ed3\u6784\u6027\u6570\u636e\u800c\u7f16\u5199\u7684\u5e94\u7528\u6846\u67b6\uff0c\u5176\u67b6\u6784\u5982\u4e0b\uff1a<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-8cc09ea4f7f1a403f655fefa3350e964_720w.jpg\" alt=\"\" width=\"700\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"700\" data-rawheight=\"494\" data-original=\"https:\/\/pic1.zhimg.com\/v2-8cc09ea4f7f1a403f655fefa3350e964_r.jpg\" data-actualsrc=\"https:\/\/pic1.zhimg.com\/v2-8cc09ea4f7f1a403f655fefa3350e964_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/scrapy-chs.readthedocs.io\/zh_CN\/0.24\/intro\/tutorial.html\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">7. \u6570\u636e\u5206\u6790<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u5904\u7406\u7edf\u8ba1\u5404\u79cd\u6570\u636e\uff0c\u5e76\u8fdb\u884c\u53ef\u89c6\u5316<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1apandas\u3001matplotlib<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">pandas<\/span>\u662f\u4e3aPython\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u7684\u8f6f\u4ef6\u5e93\uff0c\u7528\u4e8e\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u3002\u7279\u522b\u662f\uff0c\u5b83\u63d0\u4f9b\u4e86\u7528\u4e8e\u64cd\u4f5c\u6570\u503c\u8868\u548c\u65f6\u95f4\u5e8f\u5217\u7684\u6570\u636e\u7ed3\u6784\u548c\u64cd\u4f5c\u3002(<a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/pandas.pydata.org\/pandas-docs\/stable\/user_guide\/10min.html\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5341\u5206\u949f\u5165\u95e8pandas<\/a>)<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">Matplotlib<\/span>\u00a0\u662f Python \u7684\u4e00\u4e2a\u7ed8\u56fe\u5e93\u3002\u5b83\u5305\u542b\u4e86\u5927\u91cf\u7684\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u521b\u5efa\u5404\u79cd\u56fe\u5f62\uff0c\u5305\u62ec\u7b80\u5355\u7684\u6563\u70b9\u56fe\uff0c\u6b63\u5f26\u66f2\u7ebf\uff0c\u751a\u81f3\u662f\u4e09\u7ef4\u56fe\u5f62\u3002<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-aae58581031262003426320af260b9dc_720w.jpg\" alt=\"\" width=\"1874\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1874\" data-rawheight=\"1072\" data-original=\"https:\/\/pic1.zhimg.com\/v2-aae58581031262003426320af260b9dc_r.jpg\" data-actualsrc=\"https:\/\/pic1.zhimg.com\/v2-aae58581031262003426320af260b9dc_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/matplotlib.org\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6559\u7a0b<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">8. \u56fe\u50cf\u8bc6\u522b<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u8bc6\u522b\u51fa\u6587\u672c\u7b49\u4fe1\u606f<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1a\u200epytesseract\uff0copencv<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">Python-tesseract<\/span>\u00a0\u662f\u4e00\u4e2a\u57fa\u4e8e google&#8217;s Tesseract-OCR \u7684\u72ec\u7acb\u5c01\u88c5\u5305\uff0c\u529f\u80fd\u662f\u8bc6\u522b\u56fe\u7247\u6587\u4ef6\u4e2d\u6587\u5b57\uff0c\u5e76\u4f5c\u4e3a\u8fd4\u56de\u53c2\u6570\u8fd4\u56de\u8bc6\u522b\u7ed3\u679c\u3002<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-d80fefc24dd73474285badb41d5b0076_720w.jpg\" alt=\"\" width=\"1281\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1281\" data-rawheight=\"1080\" data-original=\"https:\/\/pic3.zhimg.com\/v2-d80fefc24dd73474285badb41d5b0076_r.jpg\" data-actualsrc=\"https:\/\/pic3.zhimg.com\/v2-d80fefc24dd73474285badb41d5b0076_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">OpenCV<\/span>\u7684\u5168\u79f0\u662fOpen Source Computer Vision Library\uff0c\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\uff0c\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u3001\u5206\u6790\u3001\u673a\u5668\u89c6\u89c9\u65b9\u9762\u7684\u5f00\u6e90\u51fd\u6570\u5e93\u3002OpenCV\u91c7\u7528C\/C++\u8bed\u8a00\u7f16\u5199\uff0cpython-opencv\u662fPython\u5bf9OpenCV\u7684\u5c01\u88c5\uff0c\u53ef\u4ee5\u8ba9Python\u8c03\u7528OpenCV\u7684\u529f\u80fd\u3002<\/p>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/docs.opencv.org\/master\/d6\/d00\/tutorial_py_root.html\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6559\u7a0b<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">9.\u5b9a\u65f6\u4efb\u52a1<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u5b9a\u5236\u6267\u884c\u67d0\u4e2a\u52a8\u4f5c<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1aAPScheduler<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">APScheduler<\/span>\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1\u6846\u67b6\uff0c\u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u800c\u4e14\u65b9\u4fbf\u6613\u7528\u7684\u5b9a\u65f6\u4efb\u52a1\u63a5\u53e3\uff0c\u53ef\u4ee5\u5b9e\u73b0\u57fa\u4e8e\u65e5\u671f\u3001\u56fa\u5b9a\u65f6\u95f4\u95f4\u9694\u4ee5\u53cacrontab \u7c7b\u578b\u7684\u4efb\u52a1\u3002<\/p>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/apscheduler.readthedocs.io\/en\/stable\/\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<h2 style=\"font-weight: 600; color: #121212;\">10. RPA\u6846\u67b6<\/h2>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5b9e\u73b0\u529f\u80fd<\/span>\uff1a\u6a21\u62df\u9f20\u6807\u952e\u76d8\u64cd\u4f5c\uff0c\u63a7\u5236\u6d4f\u89c8\u5668\u3001\u684c\u9762\u5e94\u7528\u7b49\u8f6f\u4ef6\uff0c\u8ba9\u7535\u8111\u4e0a\u64cd\u4f5c\u6d41\u7a0b\u81ea\u52a8\u5316<\/p>\n<p style=\"color: #121212;\"><span style=\"font-weight: 600;\">\u5e38\u7528\u5e93<\/span>\uff1apython-rpa<\/p>\n<figure style=\"color: #121212;\" data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-e53470205c4d4b891705298c00241bc6_720w.jpg\" alt=\"\" width=\"720\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"720\" data-rawheight=\"480\" data-original=\"https:\/\/pic3.zhimg.com\/v2-e53470205c4d4b891705298c00241bc6_r.jpg\" data-actualsrc=\"https:\/\/pic3.zhimg.com\/v2-e53470205c4d4b891705298c00241bc6_b.jpg\" data-lazy-status=\"ok\" \/><\/figure>\n<p style=\"color: #121212;\"><a class=\" wrap external\" style=\"color: inherit;\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/github.com\/tebelorg\/RPA-Python\" target=\"_blank\" rel=\"nofollow noreferrer\" data-za-detail-view-id=\"1043\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<p style=\"color: #121212;\">from:https:\/\/zhuanlan.zhihu.com\/p\/195680467<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RPA\uff0c\u662fRobotic Process Automation\u7684\u82f1\u6587\u7f29\u5199\uff0c\u4e2d\u6587\u662f\u673a\u5668\u4eba\u6d41\u7a0b\u81ea\u52a8\u5316\uff0c\u5229\u7528\u8f6f\u4ef6\u5c06\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u81ea\u52a8\u5316\u3002\u57fa\u672c\u76ee\u6807\u662f\u8ba9\u4eba\u4ece\u91cd\u590d\u6027\u5f3a\u7684\u7e41\u7410\u5de5\u4f5c\u4e2d\u89e3\u653e\u51fa\u6765\u53bb\u505a\u66f4\u6709\u610f\u4e49\u66f4\u5177\u521b\u9020\u6027\u7684\u5de5\u4f5c\u3002\u6bd4\u5982\u81ea\u52a8\u722c\u53d6\u7f51\u7ad9\u5185\u5bb9\u3001\u5c06\u5341\u51e0\u4e2aExce &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","category-rpa"],"_links":{"self":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=423"}],"version-history":[{"count":1,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":424,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions\/424"}],"wp:attachment":[{"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jichangqing.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}