{"id":274,"date":"2020-10-18T21:55:38","date_gmt":"2020-10-18T13:55:38","guid":{"rendered":"http:\/\/moyisuiying.com\/?p=274"},"modified":"2020-12-10T14:23:59","modified_gmt":"2020-12-10T06:23:59","slug":"python%e5%ae%9e%e7%8e%b0%e6%b1%82%e8%81%8capp%e7%bd%91%e7%bb%9c%e7%88%ac%e8%99%ab","status":"publish","type":"post","link":"http:\/\/moyisuiying.com\/index.php\/python\/274.html","title":{"rendered":"Python\u5b9e\u73b0\u201c\u6c42\u804cAPP\u7f51\u7edc\u722c\u866b\u201d"},"content":{"rendered":"\n<p><strong>1.\u5b9e\u9a8c\u6559\u5b66\u76ee\u7684\u4e0e\u8981\u6c42<\/strong><br>\u968f\u7740\u793e\u4f1a\u7ecf\u6d4e\u7684\u8fc5\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u793e\u4f1a\u5c97\u4f4d\u4f9b\u62db\u8058\u8005\u9009\u62e9\uff0c\u5982\u4f55\u5feb\u901f\u6709\u6548\u7684\u63d0\u5347\u81ea\u5df1\u5728\u610f\u5411\u5de5\u4f5c\u4e0a\u7684\u6280\u80fd\u662f\u6211\u4eec\u627e\u5230\u6ee1\u610f\u5de5\u4f5c\u7684\u7b2c\u4e00\u6b65\u3002 \u7f51\u7edc\u722c\u51fa\u4f5c\u4e3a\u4e00\u79cd\u81ea\u52a8\u4ece\u6d77\u91cf\u6570\u636e\u4e2d\u7b5b\u9009\u5e76\u63d0\u51fa\u6709\u6548\u4fe1\u606f\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u4ece\u5f00\u653e\u57df\u4e2d\u6c72\u53d6\u6240\u6c42\u3002\u672c\u5b9e\u9a8c\u901a\u8fc7\u4e00\u4e2a\u5177\u4f53\u7684\u722c\u866b\u4f8b\u5b50\uff0c\u8981\u6c42\u5b66\u751f\u81ea\u5df1\u52a8\u624b\u7f16\u5199\u4ee3\u7801\uff0c\u6316\u6398\u76ee\u6807\u4fe1\u606f\uff0c\u5e76\u4e14\u5bf9\u4fe1\u606f\u8fdb\u884c\u5206\u6790\u5229\u7528\u3002\u901a\u8fc7\u5de5\u7a0b\u5b9e\u8df5\u52a0\u6df1\u5bf9\u7406\u8bba\u77e5\u8bc6\u7684\u6df1\u5165\u7406\u89e3\u548c\u7efc\u5408\u5e94\u7528\uff0c\u8fdb\u4e00\u6b65\u63d0\u9ad8\u5b9e\u9645\u52a8\u624b\u80fd\u529b\u3002<br>\u8981\u6c42\u5b66\u751f\u5728\u4e0a\u673a\u524d\u5e94\u8ba4\u771f\u505a\u597d\u5404\u79cd\u51c6\u5907\u5de5\u4f5c\uff0c\u5305\u62ec python \u73af\u5883\u4ee5\u53ca\u76f8\u5173\u4f9d\u8d56\u5305\u7684\u5b89\u88c5\u53ca\u57fa\u672c\u64cd\u4f5c\u7684\u719f\u6089\uff0c\u719f\u6089\u722c\u866b\u7684\u57fa\u672c\u4ee3\u7801\u7f16\u5199\u3002<br><strong>2.\u5b9e\u9a8c\u601d\u8def\u7684\u63cf\u8ff0\uff08\u4ee5<a href=\"https:\/\/www.liepin.com\/\" target=\"_blank\"  rel=\"nofollow\" >\u730e\u8058\u7f51<\/a>\u4e3a\u4f8b\uff09<\/strong><br>2.1\u6b65\u9aa4<br>\u2460\u9996\u5148\u524d\u7aef\u9875\u9762\u4f1a\u53d1\u9001\u4e00\u4e2a\u8bf7\u6c42\uff0c\u8bf7\u6c42\u53c2\u6570\u4e3a\uff1a\u641c\u7d22\u5173\u952e\u5b57\uff0c\u7701\u6587\u672c\uff0c\u5e02\u6587\u672c\u3002<br>\u200b\u2461\u4f7f\u7528\u9ed8\u8ba4\u7684\u4fdd\u5b58\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff08textFilePathDir\uff09\u548c\u641c\u7d22\u5173\u952e\u5b57\uff08searchContent\uff09\u548c\u5e02\u6587\u672c\u5bf9\u5e94\u7684\u7f16\u7801\uff08dqs\uff09\u6784\u6210\u4e00\u4e2ajson\u683c\u5f0f\u7684\u6587\u4ef6\u8def\u5f84\uff08\u7528\u4e8e\u4fdd\u5b58jobList\u5bf9\u5e94json\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff09\u548c\u4e00\u4e2atxt\u683c\u5f0f\u7684\u6587\u4ef6\u8def\u5f84\uff08\u7528\u4e8e\u4fdd\u5b58\u6240\u6709\u5de5\u4f5c\u5c97\u4f4d\u63cf\u8ff0\u7684\u6587\u672c\u5185\u5bb9\uff09\u3002\u6bd4\u5982\u6587\u4ef6\u5939\u7684\u76f8\u5bf9\u8def\u5f84\u4e3a\"static\/file\"\u641c\u7d22\u6587\u672c\u4e3a \u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08\u201d\uff0c\u5730\u533a\u4e3a\u5317\u4eac\u5e02\uff0c\u5176\u5bf9\u5e94\u7684\u533a\u57df\u7f16\u7801\u4e3a010\uff0c\u5219\u4f1a\u751f\u6210\u4e24\u4e2a\u6587\u4ef6\u8def\u5f84\u201cstatic\/file\/\u7b97\u6cd5\u5de5\u7a0b\u5e08<em>010.json\u201d\u548c\u201cstatic\/file\/\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010.txt\u201d\u3002<br>\u200b \u2462\u9996\u5148\u83b7\u53d6txt\u6587\u4ef6\u683c\u5f0f\u7684\u6587\u4ef6\u5bf9\u5e94\u7684\u5b57\u7b26\u4e32\uff0c\u6bd4\u5982\"static\/file\/\u7b97\u6cd5\u5de5\u7a0b\u5e08 _ 010.txt\"\u6587\u4ef6\u7684\u6587\u672c\u5185\u5bb9\uff0c\u5982\u679c\u8be5\u6587\u4ef6\u5b58\u5728\u5e76\u4e14\u83b7\u53d6\u7684\u6587\u672c\u5185\u5bb9\u4e0d\u4e3a\u7a7a\uff0c\u90a3\u4e48\u8bf4\u660e\u672c\u6b21\u641c\u7d22\u5df2\u7ecf\u5728\u4e4b\u524d\u6709\u641c\u7d22\u8fc7\u7136\u540e\u4fdd\u5b58\u5230\u4e86\u672c\u5730\u4e2d\uff0c\u8fd9\u65f6\u5019\u6211\u4eec\u53ea\u9700\u8981\u4ece\u672c\u5730\u4e2d\u518d\u8bfb\u53d6\u201cstatic\/file\/\u7b97\u6cd5\u5de5\u7a0b\u5e08_010.json\u201d\u7684\u6587\u4ef6\u7136\u540e\u8f6c\u6362\u4e3ajobList\u96c6\u5408\u5373\u53ef\uff1b\u82e5\u662f\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u83b7\u53d6\u83b7\u53d6\u7684\u6587\u672c\u5185\u5bb9\u4e3a\u7a7a\uff0c\u90a3\u4e48\u8bf4\u660e\u8be5\u641c\u7d22\u662f\u7b2c\u4e00\u6b21\u641c\u7d22\uff0c\u9700\u8981\u4ece\u7f51\u7edc\u4e2d\u722c\u53d6\u4e0b\u6765\uff0c\u7136\u540e\u518d\u4fdd\u5b58\u5230\u672c\u5730\u4e2d\u53bb\u3002<br>\u200b \u2463\u82e5\u6b64\u6b21\u641c\u7d22\u5df2\u7ecf\u5b58\u5728\uff0c\u5219\u76f4\u63a5\u8fd4\u56de\u4ece\u672c\u5730\u83b7\u53d6\u7684\u6570\u636e\uff0c\u5c06json\u6587\u4ef6\u4e2d\u7684json\u5bf9\u8c61\u8bfb\u53d6\u4e3ajobList\u5bf9\u8c61\uff0c\u5c06txt\u6587\u4ef6\u8bfb\u53d6\u4e3ajobDesText\u6587\u672c\uff0c\u5e76\u4e14\u9664\u53bb\u4e00\u4e9b\u975e\u5fc5\u8981\u7684\u8bcd\u6c47\u6807\u70b9\u5bf9\u6587\u672c\u8fdb\u884c\u8fc7\u6ee4\u7b5b\u9009\uff0c\u7136\u540e\u5c06jobDesText\u8fdb\u884c\u5206\u8bcd\u5e76\u7edf\u8ba1\u524d\u5341\u7684\u9891\u7387\uff0c\u518d\u751f\u6210\u8bcd\u4e91\u56fe\uff0c\u6700\u540e\u5c06\u5206\u8bcd\u7edf\u8ba1\u7684\u9891\u7387\u548c\u6240\u6709\u5de5\u4f5c\u4fe1\u606f\u4ee5json\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fd4\u56de\u5230\u524d\u7aef\u9875\u9762\u4e2d\u7528\u4e8e\u6e32\u67d3\u6570\u636e\u548c\u5c55\u793a\u8bcd\u4e91\u56fe\u3002\uff1b\u82e5\u6b64\u6b21\u641c\u7d22\u662f\u7b2c\u4e00\u6b21\u641c\u7d22\uff0c\u5219\u9700\u8981\u9996\u5148\u722c\u53d6\u5230\u6240\u6709\u5de5\u4f5c\u7684\u4fe1\u606f\u548c\u5de5\u4f5c\u7684\u5c97\u4f4d\u63cf\u8ff0\uff0c\u5c06\u6240\u6709\u7684\u5de5\u4f5c\u4fe1\u606f\u4ee5json\u683c\u5f0f\u6587\u4ef6\u4fdd\u5b58\u5230\u672c\u5730\uff0c\u5c06\u6240\u6709\u5c97\u4f4d\u8981\u6c42jobDesText\u7684\u6587\u672c\u4ee5txt\u683c\u5f0f\u4fdd\u5b58\u5230\u672c\u5730\u4e2d\u53bb\uff1bjobDesText\u5e76\u4e14\u9664\u53bb\u4e00\u4e9b\u975e\u5fc5\u8981\u7684\u8bcd\u6c47\u6807\u70b9\u5bf9\u6587\u672c\u8fdb\u884c\u8fc7\u6ee4\u7b5b\u9009\u7136\u540e\u8fdb\u884c\u5206\u8bcd\u7edf\u8ba1\u524d\u5341\u7684\u9891\u7387\uff0c\u518d\u751f\u6210\u8bcd\u4e91\u56fe\uff0c\u6700\u540e\u5c06\u5206\u8bcd\u7edf\u8ba1\u7684\u9891\u7387\u548c\u6240\u6709\u5de5\u4f5c\u4fe1\u606f\u4ee5json\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fd4\u56de\u5230\u524d\u7aef\u9875\u9762\u4e2d\u7528\u4e8e\u6e32\u67d3\u6570\u636e\u548c\u5c55\u793a\u8bcd\u4e91\u56fe\u3002<br>2.2\u6d41\u7a0b\u56fe<br><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018204543134.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u5176\u4e2drequestService.singleThreadHandleSearch(searchContent, province, city)\u9700\u8981\u5904\u7406\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u8fd9\u91cc\u91c7\u7528\u7684\u662f\u5355\u7ebf\u7a0b\u8fdb\u884c\u5904\u7406\u3002<br>(1)\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u83b7\u53d6\u5bf9\u5e94\u7684province\u548ccity\u5bf9\u5e94\u7684\u57ce\u5e02\u7f16\u7801\u3002<br>(2)\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u8f7d\u9700\u8981\u7684\u5185\u5bb9\u3002<br>(3)\u6839\u636e\u641c\u7d22\u5185\u5bb9\u4ee5\u53ca\u57ce\u5e02\u7f16\u7801\u62fc\u63a5\u6587\u4ef6\u8def\u5f84\u5e76\u5224\u65ad\u8be5\u6587\u4ef6\u8def\u5f84\u662f\u5426\u5b58\u5728\uff0c\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u672c\u5730\u5219\u76f4\u63a5\u4ece\u672c\u5730\u4e2d\u83b7\u53d6\u6570\u636e;\u5426\u5219\u4ece\u7f51\u7edc\u4e0a\u722c\u53d6\u6570\u636e\u3002<br>(4)\u5982\u679c\u672c\u5730\u5df2\u7ecf\u5b58\u5728\u672c\u6b21\u641c\u7d22\u5185\u5bb9\uff0c\u90a3\u4e48\u4ece\u672c\u5730\u4e2d\u83b7\u53d6\u672c\u6b21\u5185\u5bb9\u3002\u9996\u5148\u5c06\u6240\u6709\u5de5\u4f5c\u7684\u5c97\u4f4d\u8981\u6c42\u6587\u672c\u8bfb\u53d6\u6210jobDesText,\u7136\u540e\u8bfb\u53d6\u6240\u6709\u5de5\u4f5c\u7684json\u5bf9\u8c61\uff0c\u5e76\u5c06json\u5bf9\u8c61\u8f6c\u6362\u6210\u4e00\u4e2ajobList\u6570\u7ec4\u3002<br>(5)\u5982\u679c\u672c\u5730\u4e0d\u5b58\u5728\uff0c\u5219\u4ece\u7f51\u7edc\u4e0a\u722c\u53d6\u6570\u636e\u3002<br>5.1\u7531\u4e8e\u730e\u8058\u7f51\u4e2d\u6bcf\u4e2a\u5173\u952e\u8bcd\u7684\u641c\u7d22\u7ed3\u679c\u90fd\u6709\u5341\u9875\u6570\u636e\uff0c\u6240\u4ee5\u8981\u9010\u9875\u6570\u636e\u83b7\u53d6\uff0c\u62fc\u63a5URL\uff0c\u6bcf\u6b21\u6539\u53d8URL\u4e2dcurPage\u7684\u503c\u5373\u53ef\u3002<br>5.2\u53d1\u9001\u8bf7\u6c42\uff0c\u83b7\u53d6\u4e00\u9875\u6570\u636e\u7684\u6e90\u4ee3\u7801\uff0c\u5c06\u6bcf\u4e2ajob\u7684\u5177\u4f53\u4fe1\u606f\u5c01\u88c5\u5230\u4e00\u4e2aJob\u5bf9\u8c61\u4e2d\u53bb\uff0c\u6700\u540e\u5c06\u6bcf\u4e2aJob\u6dfb\u52a0\u5230pageJobList\u4e2d\u53bb\u3002\u4e00\u9875\u6570\u636e\u5bf9\u5e94\u4e00\u4e2apageJobList.\u5171\u6709\u5341\u9875\u6570\u636e\uff0c\u4e5f\u5c31\u662f\u5341\u4e2apageJobList\u3002<br>5.3\u5c06\u5341\u4e2apageJobList\u7684\u6bcf\u4e2ajob\u6dfb\u52a0\u5230jobList\u4e2d\u53bb\u3002<br>5.4\u4ecejobList\u4e2d\u83b7\u53d6\u6bcf\u4e2ajob\u7684\u5c97\u4f4d\u8981\u6c42\u62fc\u63a5\u5230jobDesText\uff0c\u7136\u540e\u4ee5txt\u683c\u5f0f\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u53bb\u3002<br>5.5\u5c06jobList\u8f6c\u5316\u4e3ajson\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u5c06\u8be5\u5b57\u7b26\u4e32\u4ee5json\u683c\u5f0f\u4e3a\u540e\u7f00\u540d\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u53bb\u3002<br>\uff086\uff09jobDesText\u5e76\u4e14\u9664\u53bb\u4e00\u4e9b\u975e\u5fc5\u8981\u7684\u8bcd\u6c47\u6807\u70b9\u5bf9\u6587\u672c\u8fdb\u884c\u8fc7\u6ee4\u7b5b\u9009\u7136\u540e\u8fdb\u884c\u5206\u8bcd\u7edf\u8ba1\u524d\u5341\u7684\u9891\u7387\uff0c\u518d\u751f\u6210\u8bcd\u4e91\u56fe\uff0c\u6700\u540e\u5c06\u5206\u8bcd\u7edf\u8ba1\u7684\u9891\u7387\u548c\u6240\u6709\u5de5\u4f5c\u4fe1\u606f\u4ee5json\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fd4\u56de\u5230\u524d\u7aef\u9875\u9762\u4e2d\u7528\u4e8e\u6e32\u67d3\u6570\u636e\u548c\u5c55\u793a\u8bcd\u4e91\u56fe\u3002<br><strong>3.\u89e3\u6790\u6d41\u7a0b\u5206\u6790<\/strong><br>3.1\u4f7f\u7528BeautifulSoup\u722c\u53d6\u7f51\u9875\u5185\u5bb9<br>\uff081\uff09\u5bfc\u5165BeautifulSoup\u6a21\u5757<\/p >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018204543134.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u5176\u4e2drequestService.singleThreadHandleSearch(searchContent, province, city)\u9700\u8981\u5904\u7406\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u8fd9\u91cc\u91c7\u7528\u7684\u662f\u5355\u7ebf\u7a0b\u8fdb\u884c\u5904\u7406\u3002<br>(1)\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u83b7\u53d6\u5bf9\u5e94\u7684province\u548ccity\u5bf9\u5e94\u7684\u57ce\u5e02\u7f16\u7801\u3002<br>(2)\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u8f7d\u9700\u8981\u7684\u5185\u5bb9\u3002<br>(3)\u6839\u636e\u641c\u7d22\u5185\u5bb9\u4ee5\u53ca\u57ce\u5e02\u7f16\u7801\u62fc\u63a5\u6587\u4ef6\u8def\u5f84\u5e76\u5224\u65ad\u8be5\u6587\u4ef6\u8def\u5f84\u662f\u5426\u5b58\u5728\uff0c\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u672c\u5730\u5219\u76f4\u63a5\u4ece\u672c\u5730\u4e2d\u83b7\u53d6\u6570\u636e;\u5426\u5219\u4ece\u7f51\u7edc\u4e0a\u722c\u53d6\u6570\u636e\u3002<br>(4)\u5982\u679c\u672c\u5730\u5df2\u7ecf\u5b58\u5728\u672c\u6b21\u641c\u7d22\u5185\u5bb9\uff0c\u90a3\u4e48\u4ece\u672c\u5730\u4e2d\u83b7\u53d6\u672c\u6b21\u5185\u5bb9\u3002\u9996\u5148\u5c06\u6240\u6709\u5de5\u4f5c\u7684\u5c97\u4f4d\u8981\u6c42\u6587\u672c\u8bfb\u53d6\u6210jobDesText,\u7136\u540e\u8bfb\u53d6\u6240\u6709\u5de5\u4f5c\u7684json\u5bf9\u8c61\uff0c\u5e76\u5c06json\u5bf9\u8c61\u8f6c\u6362\u6210\u4e00\u4e2ajobList\u6570\u7ec4\u3002<br>(5)\u5982\u679c\u672c\u5730\u4e0d\u5b58\u5728\uff0c\u5219\u4ece\u7f51\u7edc\u4e0a\u722c\u53d6\u6570\u636e\u3002<br>5.1\u7531\u4e8e\u730e\u8058\u7f51\u4e2d\u6bcf\u4e2a\u5173\u952e\u8bcd\u7684\u641c\u7d22\u7ed3\u679c\u90fd\u6709\u5341\u9875\u6570\u636e\uff0c\u6240\u4ee5\u8981\u9010\u9875\u6570\u636e\u83b7\u53d6\uff0c\u62fc\u63a5URL\uff0c\u6bcf\u6b21\u6539\u53d8URL\u4e2dcurPage\u7684\u503c\u5373\u53ef\u3002<br>5.2\u53d1\u9001\u8bf7\u6c42\uff0c\u83b7\u53d6\u4e00\u9875\u6570\u636e\u7684\u6e90\u4ee3\u7801\uff0c\u5c06\u6bcf\u4e2ajob\u7684\u5177\u4f53\u4fe1\u606f\u5c01\u88c5\u5230\u4e00\u4e2aJob\u5bf9\u8c61\u4e2d\u53bb\uff0c\u6700\u540e\u5c06\u6bcf\u4e2aJob\u6dfb\u52a0\u5230pageJobList\u4e2d\u53bb\u3002\u4e00\u9875\u6570\u636e\u5bf9\u5e94\u4e00\u4e2apageJobList.\u5171\u6709\u5341\u9875\u6570\u636e\uff0c\u4e5f\u5c31\u662f\u5341\u4e2apageJobList\u3002<br>5.3\u5c06\u5341\u4e2apageJobList\u7684\u6bcf\u4e2ajob\u6dfb\u52a0\u5230jobList\u4e2d\u53bb\u3002<br>5.4\u4ecejobList\u4e2d\u83b7\u53d6\u6bcf\u4e2ajob\u7684\u5c97\u4f4d\u8981\u6c42\u62fc\u63a5\u5230jobDesText\uff0c\u7136\u540e\u4ee5txt\u683c\u5f0f\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u53bb\u3002<br>5.5\u5c06jobList\u8f6c\u5316\u4e3ajson\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u5c06\u8be5\u5b57\u7b26\u4e32\u4ee5json\u683c\u5f0f\u4e3a\u540e\u7f00\u540d\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u53bb\u3002<br>\uff086\uff09jobDesText\u5e76\u4e14\u9664\u53bb\u4e00\u4e9b\u975e\u5fc5\u8981\u7684\u8bcd\u6c47\u6807\u70b9\u5bf9\u6587\u672c\u8fdb\u884c\u8fc7\u6ee4\u7b5b\u9009\u7136\u540e\u8fdb\u884c\u5206\u8bcd\u7edf\u8ba1\u524d\u5341\u7684\u9891\u7387\uff0c\u518d\u751f\u6210\u8bcd\u4e91\u56fe\uff0c\u6700\u540e\u5c06\u5206\u8bcd\u7edf\u8ba1\u7684\u9891\u7387\u548c\u6240\u6709\u5de5\u4f5c\u4fe1\u606f\u4ee5json\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fd4\u56de\u5230\u524d\u7aef\u9875\u9762\u4e2d\u7528\u4e8e\u6e32\u67d3\u6570\u636e\u548c\u5c55\u793a\u8bcd\u4e91\u56fe\u3002<br><strong>3.\u89e3\u6790\u6d41\u7a0b\u5206\u6790<\/strong><br>3.1\u4f7f\u7528BeautifulSoup\u722c\u53d6\u7f51\u9875\u5185\u5bb9<br>\uff081\uff09\u5bfc\u5165BeautifulSoup\u6a21\u5757<\/p><\/noscript>\n\n\n\n<pre class=\"wp-block-code\"><code>from bs4 import BeautifulSoup<\/code><\/pre>\n\n\n\n<p>\uff082\uff09\u5411\u9700\u8981\u722c\u53d6\u7684\u7f51\u7ad9\u4e2d\u53d1\u9001\u8bf7\u6c42\uff0c\u7136\u540e\u83b7\u53d6\u5bf9\u5e94\u7684\u54cd\u5e94\u7f51\u9875HTML\u6e90\u4ee3\u7801\u5e76\u4f7f\u7528BeautifulSoup\u6784\u5efaHTML\u5bf9\u8c61\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        url = \"https:\/\/www.liepin.com\/zhaopin\/?key=Java&amp;dqs=050020&amp;pageSize=80&amp;curPage=1\"\n         # \u83b7\u53d6\u8bf7\u6c42URL\u7684\u5bf9\u5e94\u8fd4\u56deHTML\u6e90\u4ee3\u7801\n        html_tex = JobUtil.getHtmlTex(url)\n        # \u6784\u5efa\u89e3\u6790\u5bf9\u8c61\n        soup = BeautifulSoup(html_tex, \"html.parser\")<\/code><\/pre>\n\n\n\n<p>\uff083\uff09\u5f00\u59cb\u4f7f\u7528selector\u9009\u62e9\u5668\u83b7\u53d6\u6240\u6709\u5de5\u4f5c\u5177\u4f53\u4fe1\u606f\u7684\u94fe\u63a5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        # \u83b7\u53d6\u6240\u6709\u5305\u542b\u804c\u4e1a\u540d\u79f0\u4ee5\u53ca\u804c\u4e1a\u8be6\u7ec6\u94fe\u63a5\u7684a\u6807\u7b7e\n        jobInfoDiv = soup.select(\".job-info h3 a\")    <\/code><\/pre>\n\n\n\n<p><img  src=\"https:\/\/img-blog.csdnimg.cn\/20201018210818191.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u6211\u4eec\u53d1\u73b0\u5728\u8fd9\u4e2a\u5de5\u4f5c\u5217\u8868\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u5de5\u4f5c\u7684\u5177\u4f53\u7684URL\u90fd\u662f\u5728\u4ee5 class =\".job-info h3 a\"\u7684\u9009\u62e9\u5668\u5bf9\u5e94\u7684a\u6807\u7b7e\u4e2d\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u5de5\u5177\u6765\u8fdb\u884c\u83b7\u53d6\u67d0\u4e2a\u6807\u7b7e\u7684\u9009\u62e9\u5668\u3002\u6bd4\u5982\u8981\u83b7\u53d6\u8fd9\u4e2a\u5de5\u4f5c\u7684\u9009\u62e9\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7F12<br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018210921898.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img  class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018210945815.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u83b7\u53d6\u5230\u8fd9\u4e2a\u5de5\u4f5c\u7684\u5177\u4f53\u7684URL\u5bf9\u5e94\u7684\u9009\u62e9\u5668\uff1a<strong>\u201c#sojob &gt; div:nth-child(5) &gt; div &gt; div.job-content &gt; div:nth-child(1) &gt; ul &gt; li:nth-child(1) &gt; div &gt; div.job-info &gt; h3 &gt; a\u201d<\/strong>\u6211\u4eec\u53d1\u73b0\u8fd9\u4e2a\u662fID\u9009\u62e9\u5668\uff0c\u8fd9\u4e2a\u9009\u62e9\u5668\u592a\u957f\u4e86\uff0c\u5728\u4e00\u822c\u60c5\u51b5\u4e0b\u6211\u4eec\u53ef\u4ee5\u622a\u53d6\u66f4\u77ed\u7684\u9009\u62e9\u5668\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u8fd9\u4e2a\u4f5c\u7528\u3002\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\u8be5\u9009\u62e9\u5668\u53ef\u4ee5\u7b49\u4ef7\u4e8e<\/p >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018210818191.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u6211\u4eec\u53d1\u73b0\u5728\u8fd9\u4e2a\u5de5\u4f5c\u5217\u8868\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u5de5\u4f5c\u7684\u5177\u4f53\u7684URL\u90fd\u662f\u5728\u4ee5 class =\".job-info h3 a\"\u7684\u9009\u62e9\u5668\u5bf9\u5e94\u7684a\u6807\u7b7e\u4e2d\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u5de5\u5177\u6765\u8fdb\u884c\u83b7\u53d6\u67d0\u4e2a\u6807\u7b7e\u7684\u9009\u62e9\u5668\u3002\u6bd4\u5982\u8981\u83b7\u53d6\u8fd9\u4e2a\u5de5\u4f5c\u7684\u9009\u62e9\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7F12<br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018210921898.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018210945815.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u83b7\u53d6\u5230\u8fd9\u4e2a\u5de5\u4f5c\u7684\u5177\u4f53\u7684URL\u5bf9\u5e94\u7684\u9009\u62e9\u5668\uff1a<strong>\u201c#sojob &gt; div:nth-child(5) &gt; div &gt; div.job-content &gt; div:nth-child(1) &gt; ul &gt; li:nth-child(1) &gt; div &gt; div.job-info &gt; h3 &gt; a\u201d<\/strong>\u6211\u4eec\u53d1\u73b0\u8fd9\u4e2a\u662fID\u9009\u62e9\u5668\uff0c\u8fd9\u4e2a\u9009\u62e9\u5668\u592a\u957f\u4e86\uff0c\u5728\u4e00\u822c\u60c5\u51b5\u4e0b\u6211\u4eec\u53ef\u4ee5\u622a\u53d6\u66f4\u77ed\u7684\u9009\u62e9\u5668\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u8fd9\u4e2a\u4f5c\u7528\u3002\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\u8be5\u9009\u62e9\u5668\u53ef\u4ee5\u7b49\u4ef7\u4e8e<\/p><\/noscript>\n\n\n\n<p>\"div.job-info h3 a\"\u6216\u8005\".job-info h3 a\"\u8fd9\u4e24\u4e2a\u90fd\u662f\u4e00\u6837\u7684\u3002\u6211\u4eec\u628a\u8fd9\u4e24\u4e2a\u9009\u62e9\u5668\u653e\u5230\u7f51\u9875\u6e90\u7801\u4e2d\u4f7f\u7528\u641c\u7d22\u529f\u80fd\u770b\u770b\uff1a<br><img  src=\"https:\/\/img-blog.csdnimg.cn\/20201018211032873.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u53ef\u89c1\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u66f4\u77ed\u7684\u9009\u62e9\u5668\u6765\u8fdb\u884c\u83b7\u53d6\u8be5\u5de5\u4f5c\u7684URL\u94fe\u63a5\u3002<br>(4)\u83b7\u53d6\u5de5\u4f5c\u4fe1\u606f\u7684URL\u540e\uff0c\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6\u5de5\u4f5c\u7684\u8be6\u7ec6\u4fe1\u606f\u7684\u6e90\u4ee3\u7801\u7136\u540e\u901a\u8fc7BeautifulSoup\u6784\u5efa\u89e3\u6790\u5bf9\u8c61\u3002<br>\u2460\u9996\u5148\u5c06\u4e0d\u5b8c\u6574\u7684\u5de5\u4f5c\u7684URL\u94fe\u63a5\u8865\u5145\u5b8c\u6210\u3002\u6211\u4eec\u722c\u53d6\u7684\u6bcf\u4e2a\u5de5\u4f5c\u7684\u4fe1\u606f\u7684URL\u6709\u4e9b\u662f\u91c7\u7528\u76f8\u5bf9\u8def\u5f84\u6765\u6784\u5efa\u94fe\u63a5\uff0c\u6bd4\u5982\uff1a\u201c\/a\/21271755.shtml\u201d\u8fd9\u4e2a\u94fe\u63a5\uff0c\u8fd9\u65f6\u5019\u53d1\u73b0\u7f3a\u5c11\u4e86\u5934\u90e8\u7684\u4e3b\u7f51\u7ad9\u94fe\u63a5\uff0c\u8fd9\u6837\u76f4\u63a5\u53d1\u9001\u8bf7\u6c42\u662f\u83b7\u53d6\u4e0d\u4e86\u5bf9\u5e94\u5185\u5bb9\u7684\u3002\u6211\u4eec\u9700\u8981\u5c06\u8fd9\u4e2a\u94fe\u63a5\u8865\u5145\u5b8c\u6574\u3002\u8865\u507f\u4e3a\"https:\/\/www.liepin.com\/a\/21271755.shtml\".\u53ef\u4ee5\u53d1\u73b0\u8fd9\u4e2a\u8981\u8865\u5145\u7684\u90e8\u5206\u5c31\u662f\u6211\u4eec\u8981\u722c\u53d6\u7684\u5b8c\u6574\u7684URL\u3002<br>\u2461\u53d1\u9001\u8bf7\u6bcf\u4e2a\u5de5\u4f5c\u5177\u4f53\u4fe1\u606f\u7684\u8bf7\u6c42\u83b7\u53d6\u5bf9\u5e94\u7684\u6e90\u7801\u54cd\u5e94\u7136\u540e\u4f7f\u7528BeautifulSoup\u6784\u5efa\u89e3\u6790\u5bf9\u8c61\u518d\u9010\u4e2a\u4f7f\u7528soup.select_one(selector)\u6765\u83b7\u53d6\u5de5\u4f5c\u4e2d\u6bcf\u4e00\u9879\u5177\u4f53\u7684\u4fe1\u606f\u3002<br><img  class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018211225784.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><\/p >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018211032873.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\u53ef\u89c1\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u66f4\u77ed\u7684\u9009\u62e9\u5668\u6765\u8fdb\u884c\u83b7\u53d6\u8be5\u5de5\u4f5c\u7684URL\u94fe\u63a5\u3002<br>(4)\u83b7\u53d6\u5de5\u4f5c\u4fe1\u606f\u7684URL\u540e\uff0c\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6\u5de5\u4f5c\u7684\u8be6\u7ec6\u4fe1\u606f\u7684\u6e90\u4ee3\u7801\u7136\u540e\u901a\u8fc7BeautifulSoup\u6784\u5efa\u89e3\u6790\u5bf9\u8c61\u3002<br>\u2460\u9996\u5148\u5c06\u4e0d\u5b8c\u6574\u7684\u5de5\u4f5c\u7684URL\u94fe\u63a5\u8865\u5145\u5b8c\u6210\u3002\u6211\u4eec\u722c\u53d6\u7684\u6bcf\u4e2a\u5de5\u4f5c\u7684\u4fe1\u606f\u7684URL\u6709\u4e9b\u662f\u91c7\u7528\u76f8\u5bf9\u8def\u5f84\u6765\u6784\u5efa\u94fe\u63a5\uff0c\u6bd4\u5982\uff1a\u201c\/a\/21271755.shtml\u201d\u8fd9\u4e2a\u94fe\u63a5\uff0c\u8fd9\u65f6\u5019\u53d1\u73b0\u7f3a\u5c11\u4e86\u5934\u90e8\u7684\u4e3b\u7f51\u7ad9\u94fe\u63a5\uff0c\u8fd9\u6837\u76f4\u63a5\u53d1\u9001\u8bf7\u6c42\u662f\u83b7\u53d6\u4e0d\u4e86\u5bf9\u5e94\u5185\u5bb9\u7684\u3002\u6211\u4eec\u9700\u8981\u5c06\u8fd9\u4e2a\u94fe\u63a5\u8865\u5145\u5b8c\u6574\u3002\u8865\u507f\u4e3a\"https:\/\/www.liepin.com\/a\/21271755.shtml\".\u53ef\u4ee5\u53d1\u73b0\u8fd9\u4e2a\u8981\u8865\u5145\u7684\u90e8\u5206\u5c31\u662f\u6211\u4eec\u8981\u722c\u53d6\u7684\u5b8c\u6574\u7684URL\u3002<br>\u2461\u53d1\u9001\u8bf7\u6bcf\u4e2a\u5de5\u4f5c\u5177\u4f53\u4fe1\u606f\u7684\u8bf7\u6c42\u83b7\u53d6\u5bf9\u5e94\u7684\u6e90\u7801\u54cd\u5e94\u7136\u540e\u4f7f\u7528BeautifulSoup\u6784\u5efa\u89e3\u6790\u5bf9\u8c61\u518d\u9010\u4e2a\u4f7f\u7528soup.select_one(selector)\u6765\u83b7\u53d6\u5de5\u4f5c\u4e2d\u6bcf\u4e00\u9879\u5177\u4f53\u7684\u4fe1\u606f\u3002<br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018211225784.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><\/p><\/noscript>\n\n\n\n<pre class=\"wp-block-code\"><code> # \u83b7\u53d6\u8bf7\u6c42URL\u7684\u5bf9\u5e94\u8fd4\u56deHTML\u6e90\u4ee3\u7801\n html_tex = JobUtil.getHtmlTex(url)\n #\u6784\u5efaHTML\u5bf9\u8c61\nsoup = BeautifulSoup(html_tex, \"html.parser\")\n#\u83b7\u53d6\u5de5\u4f5c\u540d\njobName = soup.select_one(\".title-info\").text<\/code><\/pre>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n\n\n\n<p>\u2460.\u5728\u83b7\u53d6soup.select_one(\".title-info\")\u65f6\u6709\u53ef\u80fd\u83b7\u53d6\u4e0d\u5230\u5bf9\u8c61\uff0c\u6216\u8005\u8bf4\u83b7\u53d6\u7684\u662f\u4e00\u4e2aNone\u5bf9\u8c61\uff0c\u90a3\u4e48\u8fd9\u65f6\u5019soup.select_one(\".title-info\").text\u662f\u4f1a\u62a5\u9519\u7684\u3002\u6240\u4ee5\u5728\u5177\u4f53\u83b7\u53d6\u65f6\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u5224\u65ad\uff0c\u5176\u5b83\u7684\u5177\u4f53\u4fe1\u606f\u53ef\u4ee5\u76f8\u4f3c\u5730\u83b7\u53d6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    soup = BeautifulSoup(text, \"html.parser\")\n            jobNameDiv = soup.select_one(\".title-info\")\n            if not jobNameDiv is None:\n                return jobNameDiv.text\n            return \"\"<\/code><\/pre>\n\n\n\n<p>\u2461.\u5728\u83b7\u53d6soup.select_one(\".title-info\")\u65f6\uff0c\u540c\u6837\u4e00\u4e2a\u804c\u4f4d\u7684\u5404\u9879\u8be6\u7ec6\u4fe1\u606f\u5728\u4e0d\u540c\u7684\u7f51\u7ad9\u4e2d\u53ef\u80fd\u6e90\u7801\u4e2d\u9009\u62e9\u5668selector\u4e0d\u4e00\u6837\uff0c\u6bd4\u5982\uff1a\u5de5\u4f5c\u85aa\u6c34\u7684\u9009\u62e9\u5668\u5c31\u6709\u4e09\u4e2a\uff0c\u5728\u4e0d\u540c\u7684\u7f51\u9875\u4e2d\u9009\u62e9\u5668\u662f\u4e0d\u4e00\u6837\u7684\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u5c31\u8981\u9010\u4e2a\u6765\u83b7\u53d6\u770b\u770b\u662f\u5426\u80fd\u83b7\u53d6\u5bf9\u8c61\u3002\u4e3a\u4e86\u4fbf\u4e8e\u83b7\u53d6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u5de5\u4f5c\u4fe1\u606f\u9879\u5177\u4f53\u5bf9\u5e94\u7684\u9009\u62e9\u5668\u90fd\u914d\u7f6e\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\u53bb\uff0c\u7136\u540e\u9700\u8981\u7684\u65f6\u5019\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u83b7\u53d6\uff0c\u8fd9\u6837\u5f53\u6211\u4eec\u53d1\u73b0\u6709\u591a\u4e2a\u9009\u62e9\u5668\u7684\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u4ee5\u624b\u52a8\u5f80\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u800c\u4e0d\u9700\u8981\u4fee\u6539\u4ee3\u7801\uff0c\u8fd9\u6837\u4fbf\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u5f88\u591a\u65b9\u4fbf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\".job-item-title\",\".job-main-title\", \".job-title-left\"<\/code><\/pre>\n\n\n\n<p>\u5728\u8fd9\u91cc\u4f7f\u7528\u7684\u662fjson\u683c\u5f0f\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  {\n  \"jobInfoLinkDiv\": {\"name1\":\".job-info h3 a\"},\n   \"jobNameDiv\": {\"name1\": \"div.title-info > h1\"},\n    \"jobCompanyNameDiv\": {\"name1\": \"div.title-info > h3 a\"},\n   \"jobSalaryDiv\": {\n     \"name1\": \".job-item-title\",\n     \"name2\": \".job-main-title\",\n     \"name3\": \".job-title-left\"\n   },\n  \"jobCityDiv\": {\n    \"name1\":\"div.job-title-left > p.basic-infor > span > a\"\n    },\n   \"jobEduDiv\": {\n    \"name1\":\"div.job-title-left > div > span:nth-of-type(1)\"\n    },\n   \"jobExperienceTimeDiv\": {\n    \"name1\":\"div.job-title-left > div > span:nth-of-type(2)\"\n    },\n   \"jobCodeNameDiv\": {\n    \"name1\":\"div.job-title-left > div > span:nth-of-type(3)\"\n    },\n   \"jobAgeDiv\": {\n    \"name1\":\"div.job-title-left > div > span:nth-of-type(4)\"\n    },\n  \"jobDesDiv\": {\n    \"name1\":\"div.job-item.main-message.job-description > div\",\n    \"name2\": \"div.job-main.job-description.main-message > div\"\n  }\n }<\/code><\/pre>\n\n\n\n<p>\u2462.\u5047\u82e5\u5de5\u4f5c\u5177\u4f53\u4fe1\u606f\u7684\u67d0\u4e00\u9879\u7684\u6807\u7b7e\u662f\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u5de5\u5177\u4e2d\u7684\u83b7\u53d6\u7684\uff0c\u90a3\u4e48\u82e5\u51fa\u73b0nth-child()\u7684\uff0c\u6211\u4eec\u9700\u8981\u6539\u4e3anth-of-type()\uff0c\u6bd4\u5982\uff1a<br>\u5728\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u4f7f\u7528copy selector\u590d\u5236\u7136\u540e\u5316\u7b80\u7684\u9009\u62e9\u5668 \"div.job-title-left &gt; div &gt; span:nth-child(4)\"\u9700\u8981\u6539\u4e3a\"div.job-title-left &gt; div &gt; span:nth-of-type(4)\".\u5426\u5219\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\u4f1a\u53d1\u751f\u9519\u8bef\u3002<br><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/2020101821153927.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\uff085\uff09\u53d1\u9001\u8bf7\u6c42\u722c\u53d6\u4e0d\u5230\u5185\u5bb9\u5f88\u53ef\u80fd\u662f\u88ab\u7f51\u7ad9\u7684\u53cd\u722c\u866b\u673a\u5236\u7ed9\u7981\u6b62\u4e86\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u9700\u8981\u901a\u8fc7\u4e00\u5b9a\u7684\u65b9\u5f0f\u8fdb\u884c\u53cd\u53cd\u722c\u866b\u673a\u5236\u3002\u6b64\u6b21\u4f7f\u7528\u7684\u662f\u91c7\u7528\u968f\u673a\u7684User-Agent\u8bf7\u6c42\u5934headers\u8fdb\u884c\u53d1\u9001\u8bf7\u6c42\uff0c\u66f4\u9ad8\u7ea7\u7684\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406ip\u8fdb\u884c\u53cd\u53cd\u722c\u866b\u3002<br>\u2460\u9996\u5148\u5b89\u88c5stall fake_useragent\u6a21\u5757\u3002<\/p >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/2020101821153927.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br>\uff085\uff09\u53d1\u9001\u8bf7\u6c42\u722c\u53d6\u4e0d\u5230\u5185\u5bb9\u5f88\u53ef\u80fd\u662f\u88ab\u7f51\u7ad9\u7684\u53cd\u722c\u866b\u673a\u5236\u7ed9\u7981\u6b62\u4e86\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u9700\u8981\u901a\u8fc7\u4e00\u5b9a\u7684\u65b9\u5f0f\u8fdb\u884c\u53cd\u53cd\u722c\u866b\u673a\u5236\u3002\u6b64\u6b21\u4f7f\u7528\u7684\u662f\u91c7\u7528\u968f\u673a\u7684User-Agent\u8bf7\u6c42\u5934headers\u8fdb\u884c\u53d1\u9001\u8bf7\u6c42\uff0c\u66f4\u9ad8\u7ea7\u7684\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406ip\u8fdb\u884c\u53cd\u53cd\u722c\u866b\u3002<br>\u2460\u9996\u5148\u5b89\u88c5stall fake_useragent\u6a21\u5757\u3002<\/p><\/noscript>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install  fake_useragent`\u5728\u8fd9\u91cc\u63d2\u5165\u4ee3\u7801\u7247`<\/code><\/pre>\n\n\n\n<p>\u2461\u7136\u540e\u5f15\u5165UserAgent\u6a21\u5757\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from fake_useragent import UserAgent<\/code><\/pre>\n\n\n\n<p>\u2462\u5177\u4f53\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> @staticmethod\n    def getHtmlTex(url):\n        \"\"\"\n        \u83b7\u53d6url\u5bf9\u5e94\u7684\u7f51\u9875\u5185\u5bb9\uff0c\u5373\u83b7\u53d6\u7f51\u9875\u7684\u6e90\u7801\u4fbf\u4e8e\u5206\u6790\n        :param url:\n        :return:\n        \"\"\"\n        # \u751f\u6210\u968f\u673a\u8bf7\u6c42\u5934\n        header = {\"User-Agent\": UserAgent().random}\n\n        # \u83b7\u53d6\u8bf7\u6c42\u5185\u5bb9\n        response = requests.get(url=url, headers=header)\n        # \u5224\u5b9a\u662f\u5426\u6210\u529f\u83b7\u53d6\n        if response.status_code != 200:\n            raise Exception(\"\u8bf7\u68c0\u67e5\u60a8\u7684URL\" + url)\n        return response.text<\/code><\/pre>\n\n\n\n<p>3.2\u5c06\u6bcf\u4e2ajob\u7684\u4fe1\u606f\u5c01\u88c5\u5230job\u5bf9\u8c61\u540e\u5c06\u6bcf\u4e2a\u5de5\u4f5c\u52a0\u5165\u5230jobList\u96c6\u5408\u4e2d\u53bb\uff0c\u5c06\u6240\u6709\u7684job\u7684\u5c97\u4f4d\u63cf\u8ff0\u548c\u8981\u6c42\u62fc\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32jobDesText\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@staticmethod\n    def getJobListDesStr(jobList):\n        \"\"\"\n        \u83b7\u53d6jobList\u4e2d\u5c97\u4f4d\u8981\u6c42\u7684\u5168\u90e8\u5b57\u7b26\u4e32\n        :param jobList: \u5305\u542b\u5c97\u4f4d\u96c6\u5408\u7684list\n        :return:\n        \"\"\"\n        jobListDesStr = ''\n        for job in jobList:\n            jobListDesStr = jobListDesStr + job.jobDes\n        return jobListDesStr<\/code><\/pre>\n\n\n\n<p>3.3 \u5c06jobList\u8f6c\u6362\u4e3aJson\u5bf9\u8c61\u7684\u5b57\u7b26\u4e32\u683c\u5f0f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@staticmethod\n    def listToJson(jobList):\n        \"\"\"\n        \u5c06\u4e00\u4e2alist\u8f6c\u4e3ajson\u683c\u5f0f\n        :param jobList:\u5de5\u4f5c\u96c6\u5408\n        :return:\u8fd4\u56de\u5de5\u4f5c\u4fe1\u606f\u7684json\u683c\u5f0f\u5b57\u7b26\u4e32\n        \"\"\"\n        size = len(jobList)\n        jobListStr = '&#91;'\n        for index in range(size):\n            job = jobList&#91;index]\n            jobListStr = jobListStr + '{\"name\":\"' + job.jobName + '\",'\n            jobListStr = jobListStr + '\"city\":\"' + job.jobCity + '\",'\n            jobListStr = jobListStr + '\"edu\":\"' + job.jobEdu + '\",'\n            jobListStr = jobListStr + '\"salary\":\"' + str(job.jobSalary) + '\",'\n            jobListStr = jobListStr + '\"experienceTime\":\"' + job.jobExperienceTime + '\",'\n            jobListStr = jobListStr + '\"age\":\"' + job.age + '\",'\n            jobListStr = jobListStr + '\"jobUrl\":\"' + job.jobUrl + '\",'\n            if index == size - 1:\n                jobListStr = jobListStr + '\"codeName\":\"' + job.codeName + '\"}'\n            else:\n                jobListStr = jobListStr + '\"codeName\":\"' + job.codeName + '\"},'\n        jobListStr = jobListStr + ']'\n        return jobListStr<\/code><\/pre>\n\n\n\n<p>3.4\u5c06Json\u683c\u5f0f\u5b57\u7b26\u4e32\u548cjobDesText\u4fdd\u5b58\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@staticmethod\n    def saveTextToFile(text, filePath):\n        \"\"\"\n        \u5c06\u6587\u672c\u5185\u5bb9text\u4fdd\u5b58\u5230filePath\u8def\u5f84\u4e2d\u53bb\n        :param text: \u8981\u4fdd\u5b58\u7684\u6587\u672c\n        :param filePath: \u4fdd\u5b58\u5230\u7684\u8def\u5f84\n        :return:\n        \"\"\"\n        # \u6253\u5f00\u6587\u4ef6\n        file = open(filePath, mode=\"tw\", encoding=\"utf8\")\n        # \u5c06\u6587\u672c\u5199\u5165\u6587\u4ef6\u4e2d\u53bb\n        file.write(text)\n        # \u5237\u65b0\u7f13\u51b2\u533a\n        file.flush()\n        # \u5173\u95ed\u6587\u4ef6\u8d44\u6e90\n        file.close()<\/code><\/pre>\n\n\n\n<p>3.5\u5c06jobDesText\u4e2d\u65e0\u7528\u7684\u6807\u70b9\u7b26\u53f7\u4ee5\u53ca\u4e00\u4e9b\u65e0\u5173\u7684\u8bcd\u7ed9\u8fc7\u6ee4\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528jieba\u5e93\u5c06jobDesText\u5206\u8bcd\u7136\u540e\u7edf\u8ba1\u6bcf\u4e2a\u8bcd\u6c47\u7684\u51fa\u73b0\u9891\u7387\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> @staticmethod\n    def getWordCouldJson(text,wordJson):\n        \"\"\"\n        \u5c06\u7ed9\u5b9a\u7684\u6587\u672c\u8fdb\u5fc3\u5206\u8bcd\u5904\u7406\uff0c\u5e76\u4e14\u6dfb\u52a0json\u683c\u5f0f\u7684\u65b0\u8bcd\uff0c\u5728\u5206\u8bcd\u8fc7\u7a0b\u4e2dwordJSon\u4e2d\u7684\u8bcd\u8bed\u4e0d\u88ab\u5207\u5206\uff0c\u8fd4\u56de\u4e00\u4e2ajson\u6570\u7ec4\n        &#91;\n        {\n        \"name\": name,\n        \"value\":value\n        },\n        {\n        \"name\": name,\n        \"value\":value\n        }\n        ]\n        :param text:\u9700\u8981\u8fdb\u884c\u5206\u8bcd\u7684\u6587\u672c\n        :param wordJson:\u5728\u5206\u8bcd\u8fc7\u7a0b\u4e2d\u4e0d\u88ab\u5207\u5206\u7684\u8bcd\u8bed\u7684json\u6570\u7ec4\n        :return:\u8fd4\u56de\u5206\u8bcd\u4e00\u4e2a\u5206\u8bcd\u548c\u5bf9\u5e94\u51fa\u73b0\u9891\u7387\u7684json\u5bf9\u8c61\u6570\u7ec4\n        \"\"\"\n        for word in wordJson:\n            jieba.add_word(word&#91;'word'],word&#91;'freq'])\n        words = jieba.cut(text)  # \u4f7f\u7528\u7cbe\u786e\u6a21\u5f0f\u5bf9\u6587\u672c\u8fdb\u884c\u5206\u8bcd\n        counts = {}  # \u901a\u8fc7\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u5b58\u50a8\u8bcd\u8bed\u53ca\u5176\u51fa\u73b0\u7684\u6b21\u6570\n        # \u7edf\u8ba1\u8bcd\u9891\n        for word in words:\n            if len(word) == 1:  # \u5355\u4e2a\u8bcd\u8bed\u4e0d\u8ba1\u7b97\u5728\u5185\n                continue\n            else:\n                counts&#91;word] = counts.get(word, 0) + 1  # \u904d\u5386\u6240\u6709\u8bcd\u8bed\uff0c\u6bcf\u51fa\u73b0\u4e00\u6b21\u5176\u5bf9\u5e94\u7684\u503c\u52a0 1\n        # \u6ce8\u89e3\uff1adict.get(word,0)\u5f53\u80fd\u67e5\u8be2\u5230\u76f8\u5339\u914d\u7684\u5b57\u5178\u65f6\uff0c\u5c31\u4f1a\u663e\u793a\u76f8\u5e94key\u5bf9\u5e94\u7684value\uff0c\u5982\u679c\u4e0d\u80fd\u7684\u8bdd\uff0c\u5c31\u4f1a\u663e\u793a\u540e\u9762\u7684\u8fd9\u4e2a\u53c2\u6570\n        # \u6709\u4e9b\u4e0d\u91cd\u8981\u7684\u8bcd\u8bed\u4f46\u51fa\u73b0\u6b21\u6570\u8f83\u591a\uff0c\u53ef\u4ee5\u901a\u8fc7\u6784\u5efa\u6392\u9664\u8bcd\u5e93excludes\u6765\u5220\u9664\n        items = list(counts.items())\n        # \u6839\u636e\u8bcd\u8bed\u51fa\u73b0\u7684\u6b21\u6570\u8fdb\u884c\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\n        items.sort(key=lambda x: x&#91;1], reverse=True)\n        dictList = {}\n        for item in items:\n            dictList&#91;item&#91;0]] = item&#91;1]\n        # \u5c06\u5b57\u5178\u8f6c\u6362\u4e3ajson\u5bf9\u8c61\n        return json.dumps(dictList,ensure_ascii=False)<\/code><\/pre>\n\n\n\n<p>3.6\u4f7f\u7528wordcloud\u5c06\u5c97\u4f4d\u63cf\u8ff0\u6587\u672c\u4ea7\u751f\u8bcd\u4e91\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@staticmethod\n    def wordCould(text, backGroudImgPath, desPath, scale):\n        \"\"\"\n         \u5bf9\u7ed9\u5b9a\u7684text\u6587\u672c\u4ee5backGroudImgPath\u7684\u56fe\u7247\u4e3a\u80cc\u666f\u56fe\u7247\u5e76\u6309\u7167\u6307\u5b9a\u7684\u7f29\u653e\u6bd4\u4f8bscale\u751f\u6210\u8bcd\u4e91\uff0c\u7136\u540e\u5199\u5165\u5230desPath\u8def\u5f84\u4e2d\u53bb\n        :param text: \u7ed9\u5b9a\u7684\u6587\u672c\n        :param backGroudImgPath:\u80cc\u666f\u56fe\u7247\u8def\u5f84\n        :param desPath: \u8bcd\u4e91\u56fe\u7247\u5b58\u50a8\u7684\u76ee\u7684\u5730\n        :param scale: \u56fe\u7247\u7684\u7f29\u653e\u6bd4\n        :return: null\n        \"\"\"\n        # \u52a0\u8f7d\u80cc\u666f\u56fe\n        color_mask = np.array(Image.open(backGroudImgPath))\n        wc1 = WordCloud(\n            scale=scale,  # \u56fe\u7247\u7684\u7f29\u653e\u6bd4\u4f8b\n            mask=color_mask,  # \u80cc\u666f\u56fe\u989c\u8272\n            background_color='white',  # \u80cc\u666f\u989c\u8272\n            height=300,  # \u56fe\u7247\u9ad8\u5ea6\n            width=500,  # \u56fe\u7247\u5bbd\u5ea6\n            max_font_size=100,  # \u5b57\u4f53\u6700\u5927\u503c\n            random_state=100,  # \u914d\u8272\u65b9\u6848\u7684\u79cd\u7c7b\n            font_path=\"static\/font\/AdobeHeitiStd-Regular.otf\",  # \u4e0d\u52a0\u8fd9\u4e00\u53e5\u663e\u793a\u53e3\u5b57\u5f62\u4e71\u7801\n        )\n        # \u4ea7\u751f\u8bcd\u4e91\n        wc1.generate(text)\n        # \u5728\u53ea\u8bbe\u7f6emask\u7684\u60c5\u51b5\u4e0b \u4f1a\u5f97\u5230\u4e00\u4e2a\u62e5\u6709\u56fe\u7247\u5f62\u72b6\u7684\u8bcd\u4e91 axis\u9ed8\u8ba4\u4e3aon \u4f1a\u5f00\u542f\u8fb9\u6846\n        plt.imshow(wc1, interpolation=\"bilinear\")\n        plt.axis(\"off\")\n        # \u5c06\u56fe\u7247\u4fdd\u5b58\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u6587\u4ef6\u4e2d\u53bb\n        plt.savefig(desPath)<\/code><\/pre>\n\n\n\n<p>3.7\u5c06\u83b7\u53d6\u7684\u8bcd\u9891\u4ee5\u53cajobList\u4fe1\u606f\u683c\u5f0f\u5316\u4e3ajson\u6570\u636e\u683c\u5f0f\u7136\u540e\u8fd4\u56de\u7ed9\u524d\u7aef\u9875\u9762\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@staticmethod\n    def jsonListToViewJson(jsonObj, jobList,wordCouldImgPath,status,msg):\n        \"\"\"\n        \u5c06\u4e00\u4e2ajson\u5bf9\u8c61\u8f6c\u6362\u4e3a\u7b26\u5408\u524d\u7aef\u9875\u9762\u5c55\u793a\u6570\u636e\u7684json\u5b57\u7b26\u4e32\n        \u683c\u5f0f\uff1a\n        {\n            \"data\":\n            {\n            \"words\":\n            &#91;\n              { name: key}\n            ],\n\n            \"jobInfoData\":&#91;{\n            name:key\n            }]\n            },\n            \"wordCouldImg\":\"\u8bcd\u4e91\u56fe\u4fdd\u5b58\u8def\u5f84\",\n            \"status\":1,\n            \"msg\":\"\u63d0\u793a\u7684\u5185\u5bb9\"\n\n        }\n        \"status\":1}\n        :param jobList: \u6240\u6709\u804c\u4f4d\u7684\u5217\u8868\n        :param jsonObj: \u9700\u8981\u8f6c\u6362\u7684json\u5bf9\u8c61\u6570\u7ec4\n        :param wordCouldImgPath: \u8bcd\u4e91\u56fe\u7684\u56fe\u7247\u8def\u5f84\n        :param status: \u72b6\u6001\n        :param msg: \u8fd4\u56de\u524d\u7aef\u9875\u9762\u7684\u63d0\u793a\u4fe1\u606f\n        :return: \u8fd4\u56de\u4e00\u4e2ajson\u683c\u5f0f\u5b57\u7b26\u4e32\n        \"\"\"\n        jsonstr = '{ \"data\":{ \"words\":&#91;'\n        index = 0\n        count = 0\n        for obj in jsonObj:\n            index = index + 1\n            if index &lt;= 10:\n                jsonstr = jsonstr + '{\"name\":\"' + obj + '\",\"value\":' + str(jsonObj&#91;obj]) + \"},\"\n            else:\n                count = count + jsonObj&#91;obj]\n        jsonstr = jsonstr + '{\"name\":\"\u5176\u5b83\",\"value\":' + str(4) + \"}],\"\n        jobListStr = '\"jobList\":&#91;'\n        size = len(jobList)\n        for index in range(size):\n            job = jobList&#91;index]\n            jobListStr = jobListStr + '{\"name\":\"' + job.jobName + '\",'\n            jobListStr = jobListStr + '\"city\":\"' + job.jobCity + '\",'\n            jobListStr = jobListStr + '\"edu\":\"' + job.jobEdu + '\",'\n            jobListStr = jobListStr + '\"salary\":\"' + str(job.jobSalary) + '\",'\n            jobListStr = jobListStr + '\"experienceTime\":\"' + job.jobExperienceTime + '\",'\n            jobListStr = jobListStr + '\"jobUrl\":\"' + job.jobUrl + '\",'\n            jobListStr = jobListStr + '\"age\":\"' + job.age + '\",'\n            if index == size - 1:\n                jobListStr = jobListStr + '\"codeName\":\"' + job.codeName + '\"}'\n            else:\n                jobListStr = jobListStr + '\"codeName\":\"' + job.codeName + '\"},'\n        jsonstr = jsonstr + jobListStr + ']'\n        jsonstr = jsonstr + ',\"wordCouldImg\":\"' + wordCouldImgPath + '\"}'\n        jsonstr = jsonstr + ',\"status\":' + str(status) + ',\"msg\":\"' + msg + '\"}'\n        # print(jsonstr)\n        return jsonstr<\/code><\/pre>\n\n\n\n<p>3.8\u6587\u4ef6\u547d\u540d<\/p>\n\n\n\n<p>\u2460\u5355\u7ebf\u7a0b\u65f6\u751f\u6210\u7684\u6587\u4ef6\u547d\u540d\u4e3a\uff1a<br>\u4fdd\u5b58\u5de5\u4f5c\u5bf9\u8c61\u4fe1\u606f\u7684json\u6587\u4ef6\u4e3a\u540d\u4e3a\uff1a \u201c\u641c\u7d22\u6587\u672c<em>\u533a\u57df\u7f16\u7801.json\",\u5c97\u4f4d\u8981\u6c42\u4fe1\u606f\u7684txt\u6587\u4ef6\u540d\u4e3a\uff1a\u201c\u641c\u7d22\u6587\u672c<\/em> \u533a\u57df\u7f16\u7801 .txt\u201d\u3002\u6bd4\u5982\u641c\u7d22\u6587\u672c\u4e3a \u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08\u201d\uff0c\u5730\u533a\u4e3a\u5317\u4eac\u5e02\uff0c\u5176\u5bf9\u5e94\u7684\u533a\u57df\u7f16\u7801\u4e3a010\uff0c\u5219\u4f1a\u751f\u6210\u4e24\u4e2a\u6587\u4ef6\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<em>010.json\u201d\u548c\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010.txt\u201d.\u5176\u5b83\u4f9d\u6b21\u7c7b\u4f3c\u3002<br>\u2461\u591a\u7ebf\u7a0b\u65f6\u751f\u6210\u7684\u6587\u4ef6\u547d\u540d\u4e3a\uff1a\u200b \u4f7f\u7528\u591a\u7ebf\u7a0b\u722c\u53d6\u6570\u636e\u65f6\u662f\u5206\u4e3a\u5341\u9875\uff0c\u6bcf\u4e00\u9875\u6570\u636e\u90fd\u7528\u4e00\u4e2a\u7ebf\u7a0b\u6765\u722c\u53d6\u3002\u6bcf\u4e00\u9875\u7684\u6570\u636e\u4e2d\u5de5\u4f5c\u4fe1\u606f\u5bf9\u8c61\u96c6\u5408\u4fdd\u5b58\u5230\u4e00\u4e2ajson\u6587\u4ef6\u4e2d\u53bb\uff0c\u5176\u683c\u5f0f\u4e3a \u201c\u641c\u7d22\u6587\u672c<em>\u533a\u57df\u7f16\u7801<\/em> \u9875\u7801.json\"\uff0c\u5de5\u4f5c\u7684\u8981\u6c42\u548c\u63cf\u8ff0\u4fdd\u5b58\u5230\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u53bb\uff0c\u5176\u683c\u5f0f\u4e3a\u201c\u641c\u7d22\u6587\u672c _ \u533a\u57df\u7f16\u7801 _ \u9875\u7801.txt\".\u6bd4\u5982\u641c\u7d22\u6587\u672c\u4e3a \u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08\u201d\uff0c\u5730\u533a\u4e3a\u5317\u4eac\u5e02\uff0c\u5176\u5bf9\u5e94\u7684\u533a\u57df\u7f16\u7801\u4e3a010\uff0c\u5219\u4f1a\u751f\u6210\u5341\u4e2ajson\u6587\u4ef6\uff0c\u5341\u4e2atxt\u6587\u4ef6\u3002<br>\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08 _ 010 <em>0.json\u201d\u548c\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010 _ 0.txt\u201d;<br>\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08 _ 010 <em>1.json\u201d\u548c\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010 _ 1.txt\u201d;<br>\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08 _ 010 <em>2.json\u201d\u548c\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010 _ 2.txt\u201d;<br>\u2026\u2026..<br>\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08 _ 010 <em>9.json\u201d\u548c\u201c\u7b97\u6cd5\u5de5\u7a0b\u5e08<\/em> 010 _ 9.txt\u201d;<\/p>\n\n\n\n<p><strong>4\u6548\u679c\u56fe<\/strong><br><img  src=\"https:\/\/img-blog.csdnimg.cn\/20201018213018842.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213056716.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213122476.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img  class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213209757.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><\/p >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213018842.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213056716.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213122476.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><br><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213209757.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"><\/p><\/noscript>\n\n\n\n<h2>5.\u9879\u76ee\u5730\u5740<\/h2>\n\n\n\n<p>GitHub\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/LJF2402901363\/JobSearchApp\" target=\"_blank\"  rel=\"nofollow\" >\u6c42\u804cAPP\u7684GitHub\u9879\u76ee\u5730\u5740<\/a><\/p>\n\n\n\n<p>Gitee\u5730\u5740\uff1a<a href=\"https:\/\/gitee.com\/ljf2402901363\/JobSearchApp\" target=\"_blank\"  rel=\"nofollow\" >\u6c42\u804cAPP\u7684gitee\u5730\u5740<\/a><\/p>\n\n\n\n<h2>6.\u9879\u76ee\u542f\u52a8<\/h2>\n\n\n\n<p>6.1\u9996\u5148\u4f7f\u7528Git\u547d\u4ee4\u5c06\u9879\u76ee\u4eceGitHub\u6216\u8005gitee\uff08\u901f\u5ea6\u66f4\u5feb\uff0c\u5e76\u4e14\u8fd8\u80fd\u770b\u5230\u6587\u6863\u4e2d\u7684\u56fe\u7247\u4fbf\u4e8e\u7167\u7740\u8fd0\u884c\u7a0b\u5e8f\uff0c\u5efa\u8bae\u4f7f\u7528gitee\uff09\u4e0a\u62c9\u53d6\u5230\u672c\u5730<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/LJF2402901363\/JobSearchApp.git<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/gitee.com\/ljf2402901363\/JobSearchApp.git<\/code><\/pre>\n\n\n\n<p>6.2\u4f7f\u7528pycharm\u6253\u5f00\u9879\u76ee<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213508499.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213508499.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>\u4f7f\u7528pycharm\u7684\u63a7\u5236\u53f0Terminal\u4f7f\u7528\u547d\u4ee4\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213533993.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213533993.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>6.3\u4f7f\u7528\u53f3\u952e\u5c06src\u76ee\u5f55\uff0c\u627e\u5230Mark Directory as ,\u5c06src\u76ee\u5f55\u8bbe\u7f6e\u4e3a Sources Root<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/2020101821360212.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/2020101821360212.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>6.4\u914d\u7f6eFlask<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213732353.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213732353.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213750949.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213750949.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213750939.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213750939.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>Target\uff1a\u6307\u5b9aFlask\u9879\u76ee\u4e2drun\u65b9\u6cd5\u6240\u5728\u7684.py\u6587\u4ef6\u3002\u672c\u9879\u76ee\u4e2d\u4f4d\u4e8econtroller\u5305\u4e0b\u7684RequestController.py\u4e0b\u3002<\/p>\n\n\n\n<p>Working directory:\u6307\u5b9a\u5de5\u4f5c\u76ee\u5f55\u3002\u8fd9\u91cc\u6307\u5b9a\u9879\u76ee\u6839\u76ee\u5f55\u5373\u53ef\u3002<\/p>\n\n\n\n<p>6.5\u76ee\u524d\u7b14\u8005\u4ec5\u5728pycharm\u4e0a\u8fd0\u884c\u672c\u9879\u76ee\u3002\u8981\u662f\u4f7f\u7528\u8be5\u5176\u5b83\u7f16\u8bd1\u5668\u8fd0\u884c\u6bd4\u5982vscode\uff0c\u4f1a\u5bfc\u81f4\u76ee\u5f55\u8def\u5f84\u7ed3\u6784\u4e0d\u4e00\u6837\u4ece\u800c\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u65f6\u51fa\u73b0\u9519\u8bef\u3002\u800c\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u6838\u5fc3\u6240\u5728\u7c7b\u5373\u662fUtil\u5305\u4e0b\u7684JsonUtil.py<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201018213816419.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201018213816419.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70#pic_center\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>\u53ea\u9700\u8981\u52a0\u8f7d\u7684\u8def\u5f84\u548c\u5bf9\u5e94json\u6587\u4ef6\u6240\u5728\u7684\u8def\u5f84\u4e00\u81f4\u5373\u53ef\u3002\u81f3\u4e8e\u5176\u4ed6\u95ee\u9898\u8bf7\u81ea\u884c\u89e3\u51b3\uff0c\u53ea\u8981\u4e0d\u62a5\u80fd\u591f\u89e3\u51b3\u5f15\u5165\u81ea\u5b9a\u4e49\u5305\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n\n\n\n<p>7.\u672c\u9879\u76ee\u5df2\u7ecf\u6253\u5305\u4e0a\u4f20\u5230\u4e2a\u4eba\u670d\u52a1\u5668\uff0c\u70b9\u51fb\u5373\u53ef\u4e0b\u8f7d\uff08\u4e0b\u8f7d\u540e\u8fd0\u884c\u548cGitHub\u6216\u8005gitee\u62c9\u53d6\u4e0b\u6765\u540e\u8fd0\u884c\u4e00\u81f4\uff09\uff1a<a href=\"http:\/\/moyisuiying.com\/wp-content\/uploads\/2020\/10\/JobSearchApp.rar\">http:\/\/moyisuiying.com\/wp-content\/uploads\/2020\/10\/JobSearchApp.rar<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b9e\u9a8c\u6559\u5b66\u76ee\u7684\u4e0e\u8981\u6c42\u968f\u7740\u793e\u4f1a\u7ecf\u6d4e\u7684\u8fc5\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u793e\u4f1a\u5c97\u4f4d\u4f9b\u62db\u8058\u8005\u9009\u62e9\uff0c\u5982\u4f55\u5feb\u901f\u6709\u6548\u7684\u63d0\u5347\u81ea\u5df1\u5728\u610f\u5411\u5de5\u4f5c\u4e0a\u7684\u6280\u80fd\u662f\u6211\u4eec\u627e\u5230\u6ee1 &#8230;<\/p>","protected":false},"author":1,"featured_media":276,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":[],"categories":[57],"tags":[61,60,59,58],"_links":{"self":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/274"}],"collection":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":1,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":277,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/274\/revisions\/277"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/media\/276"}],"wp:attachment":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}