{"id":892,"date":"2018-07-20T22:37:21","date_gmt":"2018-07-20T14:37:21","guid":{"rendered":"http:\/\/www.sniper97.cn\/?p=892"},"modified":"2018-07-20T22:37:21","modified_gmt":"2018-07-20T14:37:21","slug":"%e7%ac%ac%e4%b8%80%e8%8a%82%ef%bc%9a%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/www.sniper97.cn\/index.php\/note\/carwler\/892\/","title":{"rendered":"\u7b2c\u4e00\u8282\uff1a\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"<h3>1.anaconda\u7684\u5b89\u88c5\uff08Python3\u5b89\u88c5\uff09<\/h3>\n<p>\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.continum.io\/downloads\" target=\"_blank\" rel=\"noopener\">https:\/\/www.continum.io\/downloads<\/a><br \/>\n\u6e05\u534e\u5927\u5b66\u955c\u50cf\uff1a<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/miniconda\/\" target=\"_blank\" rel=\"noopener\">https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/miniconda\/<\/a><br \/>\n\u5982\u679c\u5b98\u7f51\u4e0b\u8f7d\u901f\u5ea6\u592a\u6162\u53ef\u4ee5\u4ece\u6e05\u534e\u5927\u5b66\u955c\u50cf\u4e0b\u8f7d\u3002<br \/>\n&nbsp;<\/p>\n<h3>2.requests\u7684\u5b89\u88c5<\/h3>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0 \u00a0\u00a0 pip install requests<br \/>\n&nbsp;<\/p>\n<h3>3.selenium\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u81ea\u52a8\u5316\u6d4b\u8bd5\u5de5\u5177\uff0c\u5229\u7528\u5b83\u6211\u4eec\u53ef\u4ee5\u9a71\u52a8\u6d4f\u89c8\u5668\u6267\u884c\u7279\u5b9a\u7684\u52a8\u4f5c\uff0c\u5982\u70b9\u51fb\u3001\u4e0b\u62c9\u7b49\u64cd\u4f5c\u3002<br \/>\n\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install selenium<br \/>\n&nbsp;<\/p>\n<h3>4.Chromedriver\u7684\u5b89\u88c5<\/h3>\n<p>\u9996\u5148\u4e0b\u8f7dChrome\u7136\u540e\u67e5\u770bChrome\u7684\u7248\u672c\uff0c\u7136\u540e\u67e5\u770b\u4e0b\u9762\u7248\u672c\u5bf9\u5e94\u7684Chromedriver\u7248\u672c\u53f7\u4e0b\u8f7d<br \/>\n\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/chromedriver.storage.googleapis.com\/index.html\" target=\"_blank\" rel=\"noopener\">http:\/\/chromedriver.storage.googleapis.com\/index.html<\/a><\/p>\n<pre>----------ChromeDriver v2.40 (2018-06-07)----------\nSupports Chrome v66-68\n----------ChromeDriver v2.39 (2018-05-30)----------\nSupports Chrome v66-68\n----------ChromeDriver v2.38 (2018-04-17)----------\nSupports Chrome v65-67\n----------ChromeDriver v2.37 (2018-03-16)----------\nSupports Chrome v64-66\n----------ChromeDriver v2.36 (2018-03-02)----------\nSupports Chrome v63-65\n----------ChromeDriver v2.35 (2018-01-10)----------\nSupports Chrome v62-64\n----------ChromeDriver v2.34 (2017-12-10)----------\nSupports Chrome v61-63\n----------ChromeDriver v2.33 (2017-10-03)----------\nSupports Chrome v60-62\n----------ChromeDriver v2.32 (2017-08-30)----------\nSupports Chrome v59-61\n----------ChromeDriver v2.31 (2017-07-21)----------\nSupports Chrome v58-60\n----------ChromeDriver v2.30 (2017-06-07)----------\nSupports Chrome v58-60\n----------ChromeDriver v2.29 (2017-04-04)----------\nSupports Chrome v56-58\n----------ChromeDriver v2.28 (2017-03-09)----------\nSupports Chrome v55-57\n----------ChromeDriver v2.27 (2016-12-23)----------\nSupports Chrome v54-56\n----------ChromeDriver v2.26 (2016-12-09)----------\nSupports Chrome v53-55\n----------ChromeDriver v2.25 (2016-10-25)----------\nSupports Chrome v53-55\n----------ChromeDriver v2.24 (2016-09-09)----------\nSupports Chrome v52-54\n----------ChromeDriver v2.23 (2016-08-04)----------\nSupports Chrome v51-53\n----------ChromeDriver v2.22 (2016-06-06)----------\nSupports Chrome v49-52\n----------ChromeDriver v2.21 (2016-01-28)----------\nSupports Chrome v46-50\n----------ChromeDriver v2.20 (2015-10-08)----------\nSupports Chrome v43-48\n----------ChromeDriver v2.19 (2015-08-28)----------\nSupports Chrome v43-47\n----------ChromeDriver v2.18 (2015-08-19)----------\nSupports Chrome v43-46\n<\/pre>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u4e4b\u540e\u9700\u8981\u5c06Chromedriver\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u6216\u8005\u5c06\u6587\u4ef6\u6dfb\u52a0\u5230python\u7684Scripts\u6587\u4ef6\u5939\u4e0b\u3002<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/QQ\u622a\u56fe20180718222342.png\" alt=\"\" class=\"alignnone size-full wp-image-897\" width=\"1034\" height=\"879\" \/><br \/>\n\u7136\u540e\u6211\u4eec\u6d4b\u8bd5\u5b89\u88c5\uff0c\u8fd0\u884c\u4e0b\u5217\u4ee3\u7801\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">from selenium import webdriver\nbrowser = webdriver.Chrome()<\/pre>\n<p>\u5982\u679c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u5d2d\u65b0\u7684Chrome\u9875\u9762\uff0c\u5219\u5b89\u88c5\u6210\u529f\u3002<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h3>5.PhantomJS\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u65e0\u754c\u9762\u7684\u3001\u53ef\u811a\u672c\u7f16\u7a0b\u7684WebKit\u6d4f\u89c8\u5668\u5f15\u64ce\u3002<br \/>\n\u6211\u4eec\u8bbf\u95ee\u5b98\u7f51\uff1a<a href=\"http:\/\/phantomjs.org\/download.html\" target=\"_blank\" rel=\"noopener\">http:\/\/phantomjs.org\/download.html<\/a><br \/>\n\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u56fd\u5185\u955c\u50cf\uff1a<a href=\"http:\/\/npm.taobao.org\/dist\/phantomjs\" target=\"_blank\" rel=\"noopener\">http:\/\/npm.taobao.org\/dist\/phantomjs<\/a><br \/>\n\u5b98\u7f51\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/2.png\" alt=\"\" class=\"alignnone size-full wp-image-898\" width=\"1034\" height=\"879\" \/><br \/>\n\u56fd\u5185\u955c\u50cf\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/3.png\" alt=\"\" class=\"alignnone size-full wp-image-899\" width=\"1034\" height=\"879\" \/><br \/>\n\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002<br \/>\n\u9a8c\u8bc1\u5b89\u88c5\uff0c\u6267\u884c\u4e0b\u5217\u7a0b\u5e8f\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">from selenium import webdriver\nbrowser = webdriver.PhantomJS()\nbrowser.get('https:\/\/www.baidu.com')\nprint(browser.current_url)<\/pre>\n<p>\u5982\u679c\u63a7\u5236\u53f0\u5185\u8f93\u51fa\u4e86https:\/\/www.baidu.com \u5e76\u4e14\u6ca1\u6709\u5f39\u51fa\u7f51\u9875\uff0c\u5219\u8bc1\u660e\u5b89\u88c5\u6210\u529f\u3002<br \/>\n&nbsp;<\/p>\n<h3>7.aiohttp\u7684\u5b89\u88c5<\/h3>\n<p>\u4e00\u4e2a\u63d0\u4f9b\u5f02\u6b65Web\u670d\u52a1\u7684\u5e93\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<br \/>\npip install aiohttp<br \/>\n\u540c\u65f6\u518d\u5b89\u88c5\u4e00\u4e2a\u5b57\u7b26\u7f16\u7801\u68c0\u6d4b\u5e93cchardet \u548c\u52a0\u901fDNS\u7684\u89e3\u6790\u5e93aiodns<br \/>\npip install cchardet aiodns<br \/>\n&nbsp;<\/p>\n<h3>8.lxml\u7684\u5b89\u88c5<\/h3>\n<p>\u662fPython\u7684\u4e00\u4e2a\u89e3\u6790\u5e93\uff0c\u652f\u6301HTML\u548cXML\u89e3\u6790\uff0c\u652f\u6301XPath\u89e3\u6790\u65b9\u5f0f\uff0c\u800c\u4e14\u89e3\u6790\u6548\u7387\u975e\u5e38\u9ad8\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install lxml<br \/>\n&nbsp;<\/p>\n<h3>9.Beautiful Soup4\u7684\u5b89\u88c5<\/h3>\n<p>\u662fPython\u7684\u4e00\u4e2aHTML\u6216XML\u7684\u89e3\u6790\u5e93\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install beautifulsoup4<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h3>10.pyquery\u7684\u5b89\u88c5<\/h3>\n<p>\u540c\u6837\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u7f51\u9875\u89e3\u6790\u5de5\u5177\uff0c\u63d0\u4f9b\u4e86jQuery\u7c7b\u4f3c\u7684\u8bed\u6cd5\u6765\u89e3\u6790HTML\u6587\u6863\uff0c\u652f\u6301CSS\u9009\u62e9\u5668\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff1apip install pyquery<br \/>\n&nbsp;<\/p>\n<h3>11.OCR\u7684\u5b89\u88c5<\/h3>\n<p>\u4e3b\u8981\u7528\u6765\u8bc6\u522b\u56fe\u5f62\u9a8c\u8bc1\u7801\u7b49\u56fe\u7247\u3002<br \/>\n\u817e\u8bafOCR\uff1a<a href=\"https:\/\/cloud.tencent.com\/product\/ocr\" target=\"_blank\" rel=\"noopener\">https:\/\/cloud.tencent.com\/product\/ocr<\/a><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/16-1.png\" alt=\"\" class=\"alignnone size-full wp-image-909\" width=\"1050\" height=\"349\" \/><br \/>\n\u767e\u5ea6OCR\uff1a<a href=\"https:\/\/login.bce.baidu.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/login.bce.baidu.com\/<\/a><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/17-1.png\" alt=\"\" class=\"alignnone size-full wp-image-910\" width=\"379\" height=\"565\" \/><br \/>\n&nbsp;<\/p>\n<h3>12.MongoDB\u7684\u5b89\u88c5<\/h3>\n<p>MongoDB\u662f\u7531C++\u7f16\u5199\u7684\u975e\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u5185\u5bb9\u5b58\u50a8\u5f62\u5f0f\u7c7b\u4f3cJSON\u5bf9\u8c61\uff0c\u5b57\u6bb5\u503c\u53ef\u4ee5\u5305\u542b\u5176\u4ed6\u6587\u6863\u3001\u6570\u7ec4\u4ee5\u53ca\u6587\u6863\u6570\u7ec4\uff0c\u975e\u5e38\u7075\u6d3b\u3002<br \/>\n\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.mongodb.com\" target=\"_blank\" rel=\"noopener\">https:\/\/www.mongodb.com<\/a><br \/>\n\u4e0b\u8f7d\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u5728bin\u7684\u540c\u7ea7\u76ee\u5f55\u4e0b\u65b0\u5efa\u6587\u4ef6\u5939data\u548clogs\uff0c\u5e76\u5728data\u4e0b\u65b0\u5efadb\u6587\u4ef6\u5939\uff0c\u5728logs\u4e0b\u65b0\u5efamongodb.log\u3001<br \/>\n\u968f\u540e\u5728\u547d\u4ee4\u884c\u4e0b\u8f93\u5165\uff1a<br \/>\nmongod &#8211;bind_ip 0.0.0.0 &#8211;logpath &#8220;xxxxxxxxxxxxx\\logs\\mongodb.log&#8221; &#8211;logappend &#8211;dbpath &#8220;xxxxxxxxxxx\\data\\db&#8221; &#8211;port 27107 &#8211;serviceName &#8220;MongoDB&#8221; &#8211;serviceDisplayName &#8220;MongoDB&#8221; &#8211;install<br \/>\n\u5176\u4e2d0.0.0.0 \u662f\u6307\u4efb\u610fIP\u53ef\u4ee5\u8bbf\u95ee\u3002\uff08\u6ce8\u610f\u66ff\u6362\u76ee\u5f55xxxxxxxxx\uff09<br \/>\n\u968f\u540e\u6211\u4eec\u5728\u8ba1\u7b97\u673a\u7ba1\u7406\u4e2d\u53ef\u4ee5\u770b\u5230MongoDB\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u624b\u52a8\u6216\u8005\u81ea\u52a8\u8fd0\u884c<br \/>\n&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/7.png\" alt=\"\" class=\"alignnone size-full wp-image-903\" width=\"1920\" height=\"1058\" \/><br \/>\n\u540c\u65f6\u63a8\u8350\u4e0b\u8f7dMongoDB\u7684\u53ef\u89c6\u5316\u8f6f\u4ef6robo 3T<br \/>\n\u4e0b\u8f7d\u94fe\u63a5\uff1a<a href=\"https:\/\/robomongo.org\/download\" target=\"_blank\" rel=\"noopener\">https:\/\/robomongo.org\/download<\/a><br \/>\n&nbsp;<\/p>\n<h3>13.Redis\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u57fa\u4e8e\u5185\u5b58\u7684\u9ad8\u6548\u7684\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u3002<br \/>\n\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"http:\/\/www.redis.cn\" target=\"_blank\" rel=\"noopener\">http:\/\/www.redis.cn<\/a><br \/>\nwindows\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/MSOpenTech\/redis\/releases\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/MSOpenTech\/redis\/releases<\/a><br \/>\n\u5b89\u5b8c\u4e4b\u540e\u6211\u4eec\u53d1\u73b0\u5728\u8ba1\u7b97\u673a\u7ba1\u7406\u4e2d\u8be5\u670d\u52a1\u5df2\u7ecf\u88ab\u6dfb\u52a0\u8fdb\u6765\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/8.png\" alt=\"\" class=\"alignnone size-full wp-image-904\" width=\"1920\" height=\"1058\" \/><br \/>\n\u540c\u65f6\u63a8\u8350\u4e0b\u8f7d\u53ef\u89c6\u5316\u7ba1\u7406\u5de5\u5177 Redis Desktop Manager<br \/>\n\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/redisdesktop.com\/download\" target=\"_blank\" rel=\"noopener\">https:\/\/redisdesktop.com\/download<\/a><br \/>\n&nbsp;<\/p>\n<h3>14.PyMongo\u7684\u5b89\u88c5<\/h3>\n<p>Python\u4e0eMongoDB\u8fdb\u884c\u4ea4\u4e92\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install pymongo<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h3>15.redis-py\u7684\u5b89\u88c5<\/h3>\n<p>Python\u4e0eRedis\u8fdb\u884c\u4ea4\u4e92\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install redis<br \/>\n&nbsp;<\/p>\n<h3>16.RedisDump\u7684\u5b89\u88c5<\/h3>\n<p>\u6570\u636e\u5bfc\u5165\\\u5bfc\u51fa\u7684\u5de5\u5177\uff0c\u57fa\u4e8eRuby\u5b9e\u73b0\uff0c\u6240\u4ee5\u9700\u8981\u5148<a href=\"https:\/\/github-production-release-asset-2e65be.s3.amazonaws.com\/78153411\/c1584daa-77c3-11e8-9e10-cfb4eb49c16a?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180720%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20180720T005443Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=dda30f2e960ee2eeacf077bca16fa659a7db88198d6bd28657392f7b6463e275&amp;X-Amz-SignedHeaders=host&amp;actor_id=30463691&amp;response-content-disposition=attachment%3B%20filename%3Drubyinstaller-devkit-2.5.1-2-x64.exe&amp;response-content-type=application%2Foctet-stream\" target=\"_blank\" rel=\"noopener\">\u5b89\u88c5Ruby<\/a>\u3002<br \/>\n\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 gem install redis-dump<br \/>\n&nbsp;<\/p>\n<h3>17.Flask\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Web\u670d\u52a1\u7a0b\u5e8f\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install flask<br \/>\n&nbsp;<\/p>\n<h3>18.Tornado\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u652f\u6301\u5f02\u6b65\u7684Web\u6846\u67b6\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install tornado<br \/>\n&nbsp;<\/p>\n<h3>19.Charles\u7684\u5b89\u88c5<\/h3>\n<p>\u4e00\u4e2a\u7f51\u7edc\u6293\u5305\u5de5\u5177\u3002<br \/>\n\u5b98\u7f51\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.charlesproxy.com\" target=\"_blank\" rel=\"noopener\">https:\/\/www.charlesproxy.com<\/a><br \/>\n\u8fd9\u4e2a\u8f6f\u4ef6\u662f\u4ed8\u8d39\u8f6f\u4ef6\uff0c\u514d\u8d3930\u5929\u5e76\u5ef6\u65f610\u79d2\u6253\u5f00\uff0c\u8d85\u8fc7\u65f6\u95f4\u6bcf\u6b21\u4f7f\u7528\u65f6\u95f4\u4e0d\u5f97\u8d85\u8fc730\u5206\u949f\u3002<br \/>\n\u8bc1\u4e66\u914d\u7f6e\uff1a\u9996\u5148\u6211\u4eec\u70b9\u51fbHelp&#8211;&gt; SSL proxying &#8211;&gt; install charles root certificate<br \/>\nmac\u4e0b\uff1a\u9009\u62e9\u59cb\u7ec8\u4fe1\u4efb\u3002<br \/>\nwin\u4e0b\uff1a\u70b9\u51fb\u5b89\u88c5\u8bc1\u4e66<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/18-1.png\" alt=\"\" class=\"alignnone size-full wp-image-913\" width=\"900\" height=\"700\" \/><br \/>\n\u70b9\u51fb\u4e0b\u4e00\u6b65<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/19-1.png\" alt=\"\" class=\"alignnone size-full wp-image-914\" width=\"628\" height=\"642\" \/><br \/>\n&nbsp;<br \/>\n\u70b9\u51fb \u5c06\u6240\u6709\u7684\u8bc1\u4e66\u90fd\u653e\u5165\u4e0b\u5217\u5b58\u50a8 &#8211;&gt; \u6536\u4fe1\u4efb\u7684\u6839\u8bc1\u4e66\u9881\u53d1\u673a\u6784<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/20-1.png\" alt=\"\" class=\"alignnone size-full wp-image-915\" width=\"900\" height=\"700\" \/><br \/>\n\u786e\u5b9a \u786e\u5b9a \u518d\u786e\u5b9a\u3002<br \/>\n&nbsp;<br \/>\n\u624b\u673a\u4e0a\u9996\u5148\u9700\u8981\u548c\u7535\u8111\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\uff0c\u7136\u540e\u624b\u673a\u5c06\u4ee3\u7406\u8bbe\u7f6e\u6210\u7535\u8111\u7684ip\uff0c\u7aef\u53e3\u662f8888\uff0c\u8fd9\u65f6\u5019\u7535\u8111\u4e0a\u4f1a\u5f39\u51fa\u7a97\u53e3\u63d0\u793a\u662f\u5426\u5141\u8bb8\uff0c\u70b9\u51fb\u5141\u8bb8\uff0c\u7136\u540e\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eechls.pro\/ssl \u4e0b\u8f7d\u5e76\u5b89\u88c5\u8bc1\u4e66\uff08IOS\u9ad8\u7248\u672c\u8fd8\u9700\u8981\u786e\u8ba4\u8bc1\u4e66\u6743\u9650\uff0c\u5728\u901a\u7528&#8211;&gt;\u5173\u4e8e&#8211;&gt;\u8bc1\u4e66 \uff09\u3002<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h3>20.mitmproxy\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u4e00\u4e2a\u652f\u6301HTTP\/HTTPS\u7684\u6293\u5305\u7a0b\u5e8f\uff0c\u4ee5\u63a7\u5236\u53f0\u7684\u5f62\u5f0f\u64cd\u4f5c\u3002<br \/>\ngithub\uff1a<a href=\"https:\/\/github.com\/mitmproxy\/mitmproxy\/releases\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/mitmproxy\/mitmproxy\/releases<\/a><br \/>\n\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/mitmproxy.org\" target=\"_blank\" rel=\"noopener\">https:\/\/mitmproxy.org<\/a><br \/>\n\u4e0b\u8f7d\u540e\u76f4\u63a5\u5b89\u88c5\u5373\u53ef\u3002<br \/>\n\u8bc1\u4e66\u914d\u7f6e\uff1a<br \/>\n\u6253\u5f00C\u76d8\u4e0b \u7528\u6237 \u5e76\u6253\u5f00 .mitmproxy<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.sniper97.cn\/wp-content\/uploads\/2018\/07\/21-1.png\" alt=\"\" class=\"alignnone size-full wp-image-917\" width=\"1139\" height=\"616\" \/><br \/>\nwin\u4e0b\uff1a\u53cc\u51fbmitmproxy-ca.p12 \u7136\u540e\u5c31\u662f\u4e0a\u9762\u8bb2\u8fc7\u7684\u5b89\u88c5\u8bc1\u4e66\u3002<br \/>\nmac\u4e0b\uff1a\u53cc\u51fbmitmproxy-ca-cert.pem\uff0c\u9009\u62e9\u59cb\u7ec8\u4fe1\u4efb\u3002<br \/>\n\u624b\u673a\u7aef\u8bc1\u4e66\u5b89\u88c5\u548c\u4e0a\u9762\u4e00\u6837\uff0c\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u8bbf\u95eemitm.it\u00a0 \u7136\u540e\u9009\u62e9\u8bbe\u5907\u7c7b\u578b\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u8bc1\u4e66\u5373\u53ef\u3002<br \/>\n&nbsp;<\/p>\n<h3>21.pyspider\u7684\u5b89\u88c5<\/h3>\n<p>\u662f\u56fd\u4ebabinux\u7f16\u5199\u7684\u5f3a\u5927\u7684\u7f51\u7edc\u722c\u866b\u6846\u67b6\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install pyspider<br \/>\n&nbsp;<\/p>\n<h3>22.Scrapy\u7684\u5b89\u88c5<\/h3>\n<p>\u4e00\u4e2a\u5341\u5206\u5f3a\u5927\u7684\u722c\u866b\u6846\u67b6\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 conda install Scrapy<br \/>\n&nbsp;<\/p>\n<h3>23.Scrapy-Redis\u7684\u5b89\u88c5<\/h3>\n<p>\u662fScrapy\u7684\u5206\u5e03\u6269\u5c55\u6a21\u5757\u3002<br \/>\n\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u00a0\u00a0\u00a0\u00a0\u00a0 pip install scrapy-redis<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.anaconda\u7684\u5b89\u88c5\uff08Python3\u5b89\u88c5\uff09 \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/www.continum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[12],"tags":[],"views":3060,"_links":{"self":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts\/892"}],"collection":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":0,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}