{"id":60648,"date":"2026-01-16T16:34:48","date_gmt":"2026-01-16T08:34:48","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=60648"},"modified":"2026-01-16T16:34:48","modified_gmt":"2026-01-16T08:34:48","slug":"littlecrawler","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/littlecrawler\/","title":{"rendered":"LittleCrawler\uff1a\u652f\u6301\u5c0f\u7ea2\u4e66\u548c\u95f2\u9c7c\u7684\u591a\u5e73\u53f0\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u91c7\u96c6\u5de5\u5177"},"content":{"rendered":"<p>LittleCrawler \u662f\u4e00\u6b3e\u57fa\u4e8e Python \u5f02\u6b65\u7f16\u7a0b\u6280\u672f\u6784\u5efa\u7684\u73b0\u4ee3\u5316\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u91c7\u96c6\u6846\u67b6\u3002\u5b83\u4e13\u4e3a\u9700\u8981\u83b7\u53d6\u516c\u5f00\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u7684\u5f00\u53d1\u8005\u548c\u6570\u636e\u5206\u6790\u5e08\u8bbe\u8ba1\uff0c\u80fd\u591f\u81ea\u52a8\u5316\u5730\u4ece\u4e3b\u6d41\u793e\u4ea4\u5e73\u53f0\uff08\u76ee\u524d\u652f\u6301\u5c0f\u7ea2\u4e66\u3001\u77e5\u4e4e\u3001\u95f2\u9c7c\/\u5c0f\u9ec4\u9c7c\uff09\u6536\u96c6\u4fe1\u606f\u3002\u4e0e\u4f20\u7edf\u7684\u5355\u811a\u672c\u722c\u866b\u4e0d\u540c\uff0cLittleCrawler \u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u5b8c\u6574\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u4e0d\u4ec5\u652f\u6301\u901a\u8fc7\u547d\u4ee4\u884c\uff08CLI\uff09\u5feb\u901f\u6267\u884c\u4efb\u52a1\uff0c\u8fd8\u5185\u7f6e\u4e86\u57fa\u4e8e FastAPI \u548c Next.js \u5f00\u53d1\u7684 Web \u53ef\u89c6\u5316\u540e\u53f0\u754c\u9762\uff0c\u65b9\u4fbf\u7528\u6237\u901a\u8fc7\u56fe\u5f62\u754c\u9762\u7ba1\u7406\u4efb\u52a1\u548c\u76d1\u63a7\u8fd0\u884c\u72b6\u6001\u3002\u8be5\u5de5\u5177\u5e95\u5c42\u91c7\u7528 Playwright \u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u6280\u672f\uff0c\u652f\u6301 CDP\uff08Chrome DevTools Protocol\uff09\u6a21\u5f0f\uff0c\u80fd\u6709\u6548\u5e94\u5bf9\u590d\u6742\u7684\u53cd\u722c\u866b\u68c0\u6d4b\uff0c\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u7a33\u5b9a\u6027\u548c\u6210\u529f\u7387\u3002\u65e0\u8bba\u662f\u4fdd\u5b58\u4e3a\u7b80\u5355\u7684 CSV\/Excel \u8868\u683c\uff0c\u8fd8\u662f\u5b58\u5165 MySQL\/MongoDB \u7b49\u6570\u636e\u5e93\uff0c\u5b83\u90fd\u80fd\u8f7b\u677e\u5e94\u5bf9\uff0c\u771f\u6b63\u505a\u5230\u4e86\u4ece\u91c7\u96c6\u5230\u5b58\u50a8\u7684\u4e00\u7ad9\u5f0f\u670d\u52a1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-60649\" title=\"LittleCrawler\uff1a\u652f\u6301\u5c0f\u7ea2\u4e66\u548c\u95f2\u9c7c\u7684\u591a\u5e73\u53f0\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u91c7\u96c6\u5de5\u5177-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2026\/01\/1333346eafa080f.jpg\" alt=\"LittleCrawler\uff1a\u652f\u6301\u5c0f\u7ea2\u4e66\u548c\u95f2\u9c7c\u7684\u591a\u5e73\u53f0\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u91c7\u96c6\u5de5\u5177-1\" width=\"2560\" height=\"1487\" \/><\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u591a\u5e73\u53f0\u652f\u6301<\/strong>\uff1a\u76ee\u524d\u6838\u5fc3\u652f\u6301<strong>\u5c0f\u7ea2\u4e66 (xhs)<\/strong>\u3001<strong>\u77e5\u4e4e (zhihu)<\/strong>\u00a0\u548c\u00a0<strong>\u95f2\u9c7c (xhy\/xy)<\/strong>\u00a0\u4e09\u5927\u5e73\u53f0\u7684\u6570\u636e\u91c7\u96c6\u3002<\/li>\n<li><strong>\u591a\u79cd\u91c7\u96c6\u6a21\u5f0f<\/strong>\uff1a\n<ul>\n<li><strong>\u641c\u7d22\u91c7\u96c6<\/strong>\uff1a\u6839\u636e\u81ea\u5b9a\u4e49\u5173\u952e\u8bcd\uff08Keywords\uff09\u6279\u91cf\u6293\u53d6\u641c\u7d22\u7ed3\u679c\u3002<\/li>\n<li><strong>\u8be6\u60c5\u91c7\u96c6<\/strong>\uff1a\u6293\u53d6\u7279\u5b9a\u6587\u7ae0\u3001\u7b14\u8bb0\u6216\u5546\u54c1\u7684\u8be6\u7ec6\u5185\u5bb9\u53ca\u8bc4\u8bba\u3002<\/li>\n<li><strong>\u4e3b\u9875\u91c7\u96c6<\/strong>\uff1a\u9488\u5bf9\u6307\u5b9a\u521b\u4f5c\u8005\uff08Creator\uff09\u6293\u53d6\u5176\u4e3b\u9875\u516c\u5f00\u7684\u6240\u6709\u53d1\u5e03\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u53ef\u89c6\u5316 Web \u540e\u53f0<\/strong>\uff1a\u63d0\u4f9b\u73b0\u4ee3\u5316\u7684 Web \u4eea\u8868\u76d8\uff0c\u652f\u6301\u5728\u6d4f\u89c8\u5668\u4e2d\u76f4\u63a5\u914d\u7f6e\u4efb\u52a1\u3001\u542f\u52a8\u722c\u866b\u5e76\u5b9e\u65f6\u9884\u89c8\u8fd0\u884c\u72b6\u6001\uff0c\u964d\u4f4e\u4e86\u64cd\u4f5c\u95e8\u69db\u3002<\/li>\n<li><strong>\u7075\u6d3b\u7684\u6570\u636e\u5b58\u50a8<\/strong>\uff1a\u652f\u6301\u5c06\u91c7\u96c6\u7684\u6570\u636e\u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\uff0c\u5305\u62ec\u672c\u5730\u6587\u4ef6\uff08CSV\u3001JSON\u3001Excel\uff09\u548c\u6570\u636e\u5e93\uff08SQLite\u3001MySQL\u3001MongoDB\uff09\uff0c\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u7684\u6570\u636e\u5904\u7406\u9700\u6c42\u3002<\/li>\n<li><strong>\u5f3a\u5927\u7684\u53cd\u68c0\u6d4b\u80fd\u529b<\/strong>\uff1a\u5185\u7f6e CDP \u6a21\u5f0f\uff08Chrome DevTools Protocol\uff09\uff0c\u6a21\u62df\u771f\u5b9e\u7528\u6237\u884c\u4e3a\uff0c\u5927\u5e45\u63d0\u5347\u901a\u8fc7\u5e73\u53f0\u5b89\u5168\u68c0\u6d4b\u7684\u6982\u7387\u3002<\/li>\n<li><strong>\u591a\u79cd\u767b\u5f55\u65b9\u5f0f<\/strong>\uff1a\u652f\u6301\u626b\u7801\u767b\u5f55\uff08QRCode\uff09\u3001\u624b\u673a\u9a8c\u8bc1\u7801\u767b\u5f55\u548c Cookie \u767b\u5f55\uff0c\u65b9\u4fbf\u7528\u6237\u7ba1\u7406\u8d26\u53f7\u4f1a\u8bdd\u3002<\/li>\n<li><strong>\u9ad8\u6027\u80fd\u67b6\u6784<\/strong>\uff1a\u57fa\u4e8e Python 3.11+ \u548c\u5f02\u6b65 IO \u8bbe\u8ba1\uff0c\u914d\u5408\u00a0<code>uv<\/code>\u00a0\u6781\u901f\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u8fd0\u884c\u6548\u7387\u9ad8\u4e14\u8d44\u6e90\u5360\u7528\u53ef\u63a7\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<p>LittleCrawler \u63d0\u4f9b\u4e86\u547d\u4ee4\u884c\uff08CLI\uff09\u548c Web \u754c\u9762\u4e24\u79cd\u4f7f\u7528\u65b9\u5f0f\u3002\u4e3a\u4e86\u83b7\u5f97\u6700\u4f73\u4f53\u9a8c\uff0c\u5efa\u8bae\u60a8\u7684\u7535\u8111\u5df2\u5b89\u88c5 Python 3.11 \u6216\u4ee5\u4e0a\u7248\u672c\u3002<\/p>\n<h3>1. \u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5c06\u9879\u76ee\u4ee3\u7801\u4e0b\u8f7d\u5230\u672c\u5730\u5e76\u5b89\u88c5\u4f9d\u8d56\u3002\u63a8\u8350\u4f7f\u7528\u00a0<code>uv<\/code>\u00a0\u8fdb\u884c\u4f9d\u8d56\u7ba1\u7406\uff08\u901f\u5ea6\u66f4\u5feb\uff09\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6807\u51c6\u7684\u00a0<code>pip<\/code>\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u83b7\u53d6\u4ee3\u7801<\/strong><br \/>\n\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/pbeenig\/LittleCrawler.git\r\ncd LittleCrawler\r\n<\/code><\/pre>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u5b89\u88c5\u4f9d\u8d56<\/strong><br \/>\n\u4f7f\u7528\u00a0<code>uv<\/code>\u00a0\u5b89\u88c5\uff08\u63a8\u8350\uff09\uff1a<\/p>\n<pre><code>uv <a href=\"https:\/\/www.kdjingpai.com\/pt\/sync\/\">sync<\/a>\r\nplaywright install chromium\r\n<\/code><\/pre>\n<p>\u6216\u8005\u4f7f\u7528\u00a0<code>pip<\/code>\u00a0\u5b89\u88c5\uff1a<\/p>\n<pre><code>pip install -r requirements.txt\r\nplaywright install chromium\r\n<\/code><\/pre>\n<h3>2. \u547d\u4ee4\u884c\uff08CLI\uff09\u65b9\u5f0f\u8fd0\u884c<\/h3>\n<p>\u8fd9\u662f\u6700\u5feb\u901f\u5f00\u59cb\u91c7\u96c6\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u4e60\u60ef\u4f7f\u7528\u7ec8\u7aef\u7684\u7528\u6237\u3002<\/p>\n<p><strong>\u914d\u7f6e\u53c2\u6570<\/strong><br \/>\n\u60a8\u53ef\u4ee5\u76f4\u63a5\u7f16\u8f91\u9879\u76ee\u76ee\u5f55\u4e0b\u7684\u00a0<code>config\/base_config.py<\/code>\u00a0\u6587\u4ef6\u6765\u8bbe\u7f6e\u9ed8\u8ba4\u53c2\u6570\uff1a<\/p>\n<ul>\n<li><code>PLATFORM<\/code>: \u8bbe\u7f6e\u76ee\u6807\u5e73\u53f0\uff0c\u5982\u00a0<code>\"xhs\"<\/code>\uff08\u5c0f\u7ea2\u4e66\uff09\u3001<code>\"zhihu\"<\/code>\uff08\u77e5\u4e4e\uff09\u3002<\/li>\n<li><code>KEYWORDS<\/code>: \u8bbe\u7f6e\u641c\u7d22\u5173\u952e\u8bcd\uff0c\u5982\u00a0<code>\"iphone16, \u6444\u5f71\u6280\u5de7\"<\/code>\u3002<\/li>\n<li><code>CRAWLER_TYPE<\/code>: \u8bbe\u7f6e\u91c7\u96c6\u7c7b\u578b\uff0c\u5982\u00a0<code>\"search\"<\/code>\uff08\u641c\u7d22\uff09\u3001<code>\"detail\"<\/code>\uff08\u8be6\u60c5\uff09\u3002<\/li>\n<li><code>SAVE_DATA_OPTION<\/code>: \u8bbe\u7f6e\u4fdd\u5b58\u683c\u5f0f\uff0c\u5982\u00a0<code>\"csv\"<\/code>\u00a0\u6216\u00a0<code>\"excel\"<\/code>\u3002<\/li>\n<\/ul>\n<p><strong>\u542f\u52a8\u722c\u866b<\/strong><br \/>\n\u4f7f\u7528\u9ed8\u8ba4\u914d\u7f6e\u8fd0\u884c\uff1a<\/p>\n<pre><code>python main.py\r\n<\/code><\/pre>\n<p>\u6216\u8005\u5728\u547d\u4ee4\u884c\u4e2d\u6307\u5b9a\u53c2\u6570\u8fd0\u884c\uff08\u8986\u76d6\u9ed8\u8ba4\u914d\u7f6e\uff09\uff1a<\/p>\n<pre><code># \u793a\u4f8b\uff1a\u5728\u5c0f\u7ea2\u4e66\u641c\u7d22\u5173\u952e\u8bcd\u5e76\u91c7\u96c6\r\npython main.py --platform xhs --type search\r\n# \u793a\u4f8b\uff1a\u521d\u59cb\u5316 SQLite \u6570\u636e\u5e93\r\npython main.py --init-db sqlite\r\n<\/code><\/pre>\n<h3>3. Web \u53ef\u89c6\u5316\u540e\u53f0\u65b9\u5f0f\u8fd0\u884c<\/h3>\n<p>\u5982\u679c\u60a8\u66f4\u559c\u6b22\u56fe\u5f62\u754c\u9762\uff0c\u53ef\u4ee5\u542f\u52a8\u5185\u7f6e\u7684 Web \u540e\u53f0\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u7f16\u8bd1\u524d\u7aef\u9875\u9762<\/strong><br \/>\n\u8fdb\u5165 Web \u76ee\u5f55\u5e76\u6784\u5efa\u754c\u9762\u8d44\u6e90\uff08\u9700\u8981\u5b89\u88c5 Node.js\uff09\uff1a<\/p>\n<pre><code>cd .\/web\r\nnpm run build\r\n<\/code><\/pre>\n<p><em>\u6ce8\uff1a\u5982\u679c\u60a8\u53ea\u60f3\u8fd0\u884c\u540e\u7aef API \u800c\u4e0d\u9700\u8981\u754c\u9762\uff0c\u53ef\u4ee5\u8df3\u8fc7\u6b64\u6b65\u3002<\/em><\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u542f\u52a8\u5b8c\u6574\u670d\u52a1<\/strong><br \/>\n\u56de\u5230\u9879\u76ee\u6839\u76ee\u5f55\uff0c\u542f\u52a8\u540e\u7aef\u670d\u52a1\uff1a<\/p>\n<pre><code># \u542f\u52a8 API \u548c\u524d\u7aef\u9875\u9762\r\nuv run uvicorn api.main:app --port 8080 --reload\r\n<\/code><\/pre>\n<p><strong>\u7b2c\u4e09\u6b65\uff1a\u8bbf\u95ee\u754c\u9762<\/strong><br \/>\n\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95ee\u00a0<code>http:\/\/127.0.0.1:8080<\/code>\u3002\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u63a7\u5236\u53f0\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\uff1a<\/p>\n<ol>\n<li><strong>\u914d\u7f6e\u4efb\u52a1<\/strong>\uff1a\u5728\u754c\u9762\u4e0a\u8f93\u5165\u5173\u952e\u8bcd\u3001\u9009\u62e9\u5e73\u53f0\u548c\u722c\u866b\u6a21\u5f0f\u3002<\/li>\n<li><strong>\u626b\u7801\u767b\u5f55<\/strong>\uff1a\u76f4\u63a5\u5728\u7f51\u9875\u4e0a\u67e5\u770b\u767b\u5f55\u4e8c\u7ef4\u7801\u5e76\u8fdb\u884c\u626b\u7801\u3002<\/li>\n<li><strong>\u76d1\u63a7\u72b6\u6001<\/strong>\uff1a\u5b9e\u65f6\u67e5\u770b\u722c\u866b\u7684\u8fd0\u884c\u65e5\u5fd7\u548c\u91c7\u96c6\u8fdb\u5ea6\u3002<\/li>\n<li><strong>\u9884\u89c8\u6570\u636e<\/strong>\uff1a\u90e8\u5206\u652f\u6301\u76f4\u63a5\u9884\u89c8\u91c7\u96c6\u5230\u7684\u6570\u636e\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<h3>\u5e38\u89c1\u95ee\u9898\u4e0e\u7ef4\u62a4<\/h3>\n<ul>\n<li><strong>\u6e05\u7406\u7f13\u5b58<\/strong>\uff1a\u5982\u679c\u9047\u5230\u8fd0\u884c\u9519\u8bef\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u6e05\u7406\u4e34\u65f6\u6587\u4ef6\u3002\n<pre><code># \u6e05\u9664\u7f13\u5b58\u547d\u4ee4\r\nfind . -type d -name \"__pycache__\" -exec rm -rf {} +\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u6570\u636e\u5bfc\u51fa<\/strong>\uff1a\u91c7\u96c6\u5b8c\u6210\u540e\uff0c\u6570\u636e\u9ed8\u8ba4\u4f1a\u4fdd\u5b58\u5728\u00a0<code>data\/<\/code>\u00a0\u76ee\u5f55\u4e0b\uff0c\u6587\u4ef6\u540d\u901a\u5e38\u5305\u542b\u65f6\u95f4\u6233\uff0c\u65b9\u4fbf\u5f52\u6863\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u7535\u5546\u5e02\u573a\u8c03\u7814<\/strong><br \/>\n\u901a\u8fc7\u91c7\u96c6\u95f2\u9c7c\uff08\u5c0f\u9ec4\u9c7c\uff09\u4e0a\u7684\u4e8c\u624b\u5546\u54c1\u4ef7\u683c\u548c\u63cf\u8ff0\uff0c\u5206\u6790\u7279\u5b9a\u4ea7\u54c1\uff08\u5982\u7535\u5b50\u4ea7\u54c1\u3001\u5962\u4f88\u54c1\uff09\u7684\u4e8c\u7ea7\u5e02\u573a\u884c\u60c5\u548c\u4fdd\u503c\u7387\uff0c\u8f85\u52a9\u5b9a\u4ef7\u51b3\u7b56\u3002<\/li>\n<li><strong>\u793e\u4ea4\u5a92\u4f53\u5185\u5bb9\u5206\u6790<\/strong><br \/>\n\u8fd0\u8425\u4eba\u5458\u53ef\u4ee5\u91c7\u96c6\u5c0f\u7ea2\u4e66\u4e0a\u7684\u70ed\u95e8\u7b14\u8bb0\u3001\u8bc4\u8bba\u548c\u535a\u4e3b\u4fe1\u606f\uff0c\u5206\u6790\u7206\u6b3e\u5185\u5bb9\u7684\u5173\u952e\u8bcd\u3001\u8bdd\u9898\u8d8b\u52bf\u548c\u7528\u6237\u504f\u597d\uff0c\u4ece\u800c\u4f18\u5316\u81ea\u5df1\u7684\u5185\u5bb9\u521b\u4f5c\u7b56\u7565\u3002<\/li>\n<li><strong>\u5b66\u672f\u7814\u7a76\u4e0e\u8206\u60c5\u76d1\u6d4b<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u5229\u7528\u8be5\u5de5\u5177\u6293\u53d6\u77e5\u4e4e\u4e0a\u7684\u95ee\u7b54\u548c\u6587\u7ae0\uff0c\u6536\u96c6\u516c\u4f17\u5bf9\u7279\u5b9a\u793e\u4f1a\u8bdd\u9898\u6216\u79d1\u6280\u4ea7\u54c1\u7684\u89c2\u70b9\u548c\u8ba8\u8bba\uff0c\u7528\u4e8e\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u8bed\u6599\u5e93\u6784\u5efa\u6216\u8206\u60c5\u5206\u6790\u3002<\/li>\n<li><strong>\u7ade\u54c1\u76d1\u63a7<\/strong><br \/>\n\u54c1\u724c\u65b9\u53ef\u4ee5\u5b9a\u671f\u6293\u53d6\u7ade\u54c1\u5728\u5404\u5927\u793e\u4ea4\u5e73\u53f0\u4e0a\u7684\u7528\u6237\u53cd\u9988\u548c\u6d3b\u52a8\u4fe1\u606f\uff0c\u53ca\u65f6\u638c\u63e1\u7ade\u4e89\u5bf9\u624b\u7684\u52a8\u6001\u548c\u5e02\u573a\u53cd\u54cd\u3002<\/li>\n<\/ol>\n<h2>QA<\/h2>\n<ol>\n<li><strong>\u8fd9\u4e2a\u5de5\u5177\u652f\u6301\u54ea\u4e9b\u64cd\u4f5c\u7cfb\u7edf\uff1f<\/strong><br \/>\n\u652f\u6301 Windows\u3001macOS \u548c Linux\u3002\u7531\u4e8e\u4f7f\u7528\u4e86 Playwright\uff0c\u53ea\u8981\u80fd\u8fd0\u884c Chromium \u6d4f\u89c8\u5668\u7684\u7cfb\u7edf\u7406\u8bba\u4e0a\u90fd\u652f\u6301\u3002<\/li>\n<li><strong>\u9047\u5230\u53cd\u722c\u9a8c\u8bc1\uff08\u5982\u6ed1\u5757\u9a8c\u8bc1\u7801\uff09\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u5de5\u5177\u5185\u7f6e\u4e86 CDP \u6a21\u5f0f\uff0c\u80fd\u6a21\u62df\u771f\u5b9e\u6d4f\u89c8\u5668\u6307\u7eb9\uff0c\u51cf\u5c11\u89e6\u53d1\u9a8c\u8bc1\u7684\u6982\u7387\u3002\u4f46\u5728\u9ad8\u9891\u91c7\u96c6\u65f6\u4ecd\u53ef\u80fd\u89e6\u53d1\u9a8c\u8bc1\uff0c\u5efa\u8bae\u9002\u5f53\u964d\u4f4e\u91c7\u96c6\u9891\u7387\u6216\u914d\u7f6e\u4ee3\u7406 IP\uff08\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u00a0<code>ENABLE_IP_PROXY = True<\/code>\uff09\u3002<\/li>\n<li><strong>\u91c7\u96c6\u7684\u6570\u636e\u53ef\u4ee5\u5b58\u5230\u6211\u81ea\u5df1\u7684\u6570\u636e\u5e93\u5417\uff1f<\/strong><br \/>\n\u53ef\u4ee5\u3002\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06\u00a0<code>SAVE_DATA_OPTION<\/code>\u00a0\u8bbe\u7f6e\u4e3a\u00a0<code>mysql<\/code>\u00a0\u6216\u00a0<code>mongodb<\/code>\uff0c\u5e76\u5728\u76f8\u5e94\u7684\u914d\u7f6e\u6bb5\u843d\u4e2d\u586b\u5165\u60a8\u7684\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\uff08\u5730\u5740\u3001\u8d26\u53f7\u3001\u5bc6\u7801\uff09\u5373\u53ef\u3002<\/li>\n<li><strong>\u4e3a\u4ec0\u4e48\u5b89\u88c5\u65f6\u63d0\u793a\u7f3a\u5c11\u00a0<code>uv<\/code>\uff1f<\/strong><br \/>\n<code>uv<\/code>\u00a0\u662f\u4e00\u4e2a\u65b0\u5174\u7684 Python \u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u00a0<code>pip install uv<\/code>\u00a0\u8fdb\u884c\u5b89\u88c5\uff0c\u6216\u8005\u76f4\u63a5\u8df3\u8fc7\u00a0<code>uv<\/code>\u00a0\u547d\u4ee4\uff0c\u4f7f\u7528\u6807\u51c6\u7684\u00a0<code>pip<\/code>\u00a0\u548c\u00a0<code>python<\/code>\u00a0\u547d\u4ee4\u6765\u4ee3\u66ff\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>LittleCrawler \u662f\u4e00\u6b3e\u57fa\u4e8e Python \u5f02\u6b65\u7f16\u7a0b\u6280\u672f\u6784\u5efa\u7684\u73b0\u4ee3\u5316\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u91c7\u96c6\u6846\u67b6\u3002\u5b83\u4e13\u4e3a\u9700\u8981\u83b7\u53d6\u516c\u5f00\u793e\u4ea4\u5a92\u4f53\u6570\u636e\u7684\u5f00\u53d1\u8005\u548c\u6570\u636e\u5206\u6790\u5e08\u8bbe\u8ba1\uff0c\u80fd\u591f\u81ea\u52a8\u5316\u5730\u4ece\u4e3b\u6d41\u793e\u4ea4\u5e73\u53f0\uff08\u76ee\u524d\u652f\u6301\u5c0f\u7ea2\u4e66\u3001\u77e5\u4e4e\u3001\u95f2\u9c7c\/\u5c0f\u9ec4\u9c7c\uff09\u6536\u96c6\u4fe1\u606f\u3002\u4e0e\u4f20\u7edf\u7684\u5355&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,461],"tags":[230],"class_list":["post-60648","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-research","tag-aikaiyuanxiangmu"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/60648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=60648"}],"version-history":[{"count":1,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/60648\/revisions"}],"predecessor-version":[{"id":60650,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/60648\/revisions\/60650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=60648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=60648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=60648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}