{"id":477167,"date":"2023-08-09T09:08:44","date_gmt":"2023-08-09T09:08:44","guid":{"rendered":""},"modified":"2023-09-05T11:14:13","modified_gmt":"2023-09-05T11:14:13","slug":"external-library","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/external-library\/","title":{"rendered":"\u5916\u90e8\u5e93"},"content":{"rendered":"<p>\u5916\u90e8\u5e93\uff08\u901a\u5e38\u79f0\u4e3a\u4f9d\u8d56\u9879\uff09\u5728\u73b0\u4ee3 Web \u5f00\u53d1\u548c\u4ee3\u7406\u670d\u52a1\u5668\u64cd\u4f5c\u4e2d\u8d77\u7740\u5173\u952e\u4f5c\u7528\u3002\u5b83\u4eec\u4ee3\u8868\u53ef\u91cd\u590d\u4f7f\u7528\u7684\u8f6f\u4ef6\u6a21\u5757\uff0c\u53ef\u4ee5\u5408\u5e76\u5230\u591a\u4e2a\u7a0b\u5e8f\u6216\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u4ece\u800c\u7b80\u5316\u5f00\u53d1\u8fc7\u7a0b\u5e76\u589e\u5f3a\u8f6f\u4ef6\u529f\u80fd\u3002\u8fd9\u4e9b\u5e93\u5305\u62ec\u51fd\u6570\u96c6\u3001\u7c7b\u3001\u63a5\u53e3\u3001\u6570\u636e\u7ed3\u6784\u548c\u5176\u4ed6\u6709\u7528\u7684\u5de5\u5177\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u5b83\u4eec\u66f4\u6709\u6548\u5730\u89e3\u51b3\u590d\u6742\u4efb\u52a1\u3002<\/p>\n<h2>\u5916\u90e8\u56fe\u4e66\u9986\u7684\u5386\u53f2<\/h2>\n<p>\u5916\u90e8\u5e93\u7684\u51fa\u73b0\u53ef\u4ee5\u8ffd\u6eaf\u5230 20 \u4e16\u7eaa 60 \u5e74\u4ee3\u7ed3\u6784\u5316\u7f16\u7a0b\u7684\u65e9\u671f\uff0c\u5f53\u65f6\u51fa\u73b0\u4e86\u7b2c\u4e00\u79cd\u6a21\u5757\u5316\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982 ALGOL\u3002\u8fd9\u4e9b\u65e9\u671f\u8bed\u8a00\u7387\u5148\u63d0\u51fa\u4e86\u8f6f\u4ef6\u5e93\u7684\u6982\u5ff5\uff0c\u5373\u4e00\u7ec4\u53ef\u5728\u4e0d\u540c\u5e94\u7528\u7a0b\u5e8f\u4e2d\u91cd\u590d\u4f7f\u7528\u7684\u4f8b\u7a0b\u3002<\/p>\n<p>\u968f\u7740\u7f16\u7a0b\u9010\u6e10\u53d1\u5c55\u4e3a C \u7b49\u9ad8\u7ea7\u8bed\u8a00\uff0c\u5e93\u4e5f\u53d8\u5f97\u8d8a\u6765\u8d8a\u5f3a\u5927\u548c\u590d\u6742\uff0c\u4ece\u800c\u50ac\u751f\u4e86 C \u6807\u51c6\u5e93\uff0c\u8be5\u5e93\u6210\u4e3a\u8bb8\u591a\u5176\u4ed6\u8bed\u8a00\u5e93\u7684\u57fa\u7840\u3002\u4e92\u8054\u7f51\u548c Web \u5f00\u53d1\u7684\u51fa\u73b0\u5e26\u6765\u4e86\u5916\u90e8\u5e93\u7684\u4f7f\u7528\u548c\u5f00\u53d1\u6fc0\u589e\uff0c\u5c24\u5176\u662f\u4e0e Web \u76f8\u5173\u7684\u4efb\u52a1\uff0c\u4f8b\u5982 HTTP \u8bf7\u6c42\u3001Web \u6293\u53d6\u548c\u6570\u636e\u5904\u7406\u3002<\/p>\n<h2>\u6269\u5c55\u4e3b\u9898\uff1a\u5916\u90e8\u5e93<\/h2>\n<p>\u5916\u90e8\u5e93\u901a\u5e38\u5206\u4e3a\u4e24\u5927\u7c7b\uff1a\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\u3002\u6807\u51c6\u5e93\u662f\u7f16\u7a0b\u8bed\u8a00\u672c\u8eab\u9644\u5e26\u7684\u5e93\uff0c\u63d0\u4f9b\u57fa\u672c\u529f\u80fd\u3002\u800c\u7b2c\u4e09\u65b9\u5e93\u5219\u7531\u72ec\u7acb\u5f00\u53d1\u4eba\u5458\u6216\u7ec4\u7ec7\u521b\u5efa\uff0c\u7528\u4e8e\u6dfb\u52a0\u4e13\u95e8\u7684\u529f\u80fd\u3002<\/p>\n<p>\u5728 Web \u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u6807\u51c6\u5e93\u7684\u793a\u4f8b\u5305\u62ec Java \u6807\u51c6\u5e93\u6216 Python \u6807\u51c6\u5e93\u3002\u503c\u5f97\u6ce8\u610f\u7684\u7b2c\u4e09\u65b9\u5e93\u5305\u62ec JavaScript \u7684 JQuery\u3001Python \u7684 Flask \u6216 Java \u7684 Apache Commons\u3002<\/p>\n<p>\u5916\u90e8\u5e93\u7684\u4e00\u5927\u4f18\u52bf\u662f\uff0c\u5b83\u4eec\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u7ad9\u5728\u4ed6\u4eba\u7684\u80a9\u8180\u4e0a\uff0c\u5229\u7528\u793e\u533a\u7684\u96c6\u4f53\u77e5\u8bc6\u548c\u4e13\u4e1a\u77e5\u8bc6\u3002\u8fd9\u4e00\u4f18\u52bf\u51cf\u5c11\u4e86\u201c\u91cd\u65b0\u53d1\u660e\u8f6e\u5b50\u201d\u6765\u5b8c\u6210\u5e38\u89c1\u4efb\u52a1\u7684\u9700\u8981\uff0c\u5e76\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u66f4\u591a\u5730\u5173\u6ce8\u5176\u5e94\u7528\u7a0b\u5e8f\u7684\u72ec\u7279\u65b9\u9762\u3002<\/p>\n<h2>\u5916\u90e8\u56fe\u4e66\u9986\u7684\u5185\u90e8\u7ed3\u6784\u548c\u8fd0\u4f5c<\/h2>\n<p>\u867d\u7136\u5177\u4f53\u7ec6\u8282\u56e0\u7f16\u7a0b\u8bed\u8a00\u800c\u5f02\uff0c\u4f46\u5916\u90e8\u5e93\u901a\u5e38\u7531\u4e00\u7ec4\u9884\u7f16\u8bd1\u7684\u4f8b\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u4f8b\u7a0b\u6267\u884c\u4e00\u9879\u7279\u5b9a\u4efb\u52a1\u3002\u8fd9\u4e9b\u4f8b\u7a0b\u4ee5\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u50a8\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u5e76\u7531\u7a0b\u5e8f\u6267\u884c\u3002<\/p>\n<p>\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u5916\u90e8\u5e93\u4f1a\u63d0\u4f9b\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3 (API)\uff0c\u5b9a\u4e49\u5176\u4ed6\u8f6f\u4ef6\u5982\u4f55\u4e0e\u5176\u4ea4\u4e92\u3002\u6b64\u63a5\u53e3\u5305\u62ec\u4e00\u7ec4\u516c\u5171\u51fd\u6570\u3001\u7c7b\u6216\u65b9\u6cd5\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4ee3\u7801\u4e2d\u4f7f\u7528\u5b83\u4eec\u3002\u7136\u540e\uff0c\u5e93\u7684\u5185\u90e8\u4ee3\u7801\u4f1a\u5904\u7406\u5e95\u5c42\u590d\u6742\u6027\uff0c\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u522b\u7684\u62bd\u8c61\uff0c\u4ece\u800c\u7b80\u5316\u5f00\u53d1\u3002<\/p>\n<h2>\u5916\u90e8\u5e93\u7684\u4e3b\u8981\u529f\u80fd<\/h2>\n<p>\u5916\u90e8\u5e93\u7684\u51e0\u4e2a\u7279\u6027\u4f7f\u5176\u6210\u4e3a\u5f00\u53d1\u4eba\u5458\u7684\u91cd\u8981\u5de5\u5177\uff1a<\/p>\n<ul>\n<li><strong>\u4ee3\u7801\u53ef\u91cd\u7528\u6027\uff1a<\/strong> \u5e93\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5728\u591a\u4e2a\u9879\u76ee\u4e2d\u91cd\u590d\u4f7f\u7528\u4ee3\u7801\uff0c\u4ece\u800c\u63d0\u9ad8\u751f\u4ea7\u529b\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<li><strong>\u62bd\u8c61\uff1a<\/strong> \u901a\u8fc7\u5904\u7406\u590d\u6742\u7684\u4efb\u52a1\uff0c\u5e93\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5728\u66f4\u9ad8\u7684\u62bd\u8c61\u5c42\u6b21\u4e0a\u8fdb\u884c\u64cd\u4f5c\uff0c\u4ece\u800c\u66f4\u52a0\u4e13\u6ce8\u4e8e\u5176\u5e94\u7528\u7a0b\u5e8f\u7684\u72ec\u7279\u65b9\u9762\u3002<\/li>\n<li><strong>\u6a21\u5757\u5316\uff1a<\/strong> \u5e93\u4fc3\u8fdb\u6a21\u5757\u5316\u7f16\u7a0b\uff0c\u4ece\u800c\u6539\u5584\u4ee3\u7801\u7ec4\u7ec7\u3001\u53ef\u8bfb\u6027\u548c\u6d4b\u8bd5\u3002<\/li>\n<li><strong>\u793e\u533a\u652f\u6301\uff1a<\/strong> \u53d7\u6b22\u8fce\u7684\u56fe\u4e66\u9986\u901a\u5e38\u4f34\u968f\u7740\u79ef\u6781\u7684\u793e\u533a\u652f\u6301\uff0c\u63d0\u4f9b\u5e2e\u52a9\u548c\u66f4\u65b0\u3002<\/li>\n<\/ul>\n<h2>\u5916\u90e8\u5e93\u7684\u7c7b\u578b<\/h2>\n<p>\u5916\u90e8\u5e93\u53ef\u4ee5\u6839\u636e\u5404\u79cd\u56e0\u7d20\u8fdb\u884c\u5206\u7c7b\uff0c\u4f8b\u5982\u5176\u529f\u80fd\u3001\u652f\u6301\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4ee5\u53ca\u5b83\u4eec\u662f\u6807\u51c6\u5e93\u8fd8\u662f\u7b2c\u4e09\u65b9\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5206\u7c7b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u529f\u80fd<\/th>\n<th>\u4f8b\u5b50<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Web\u5f00\u53d1<\/td>\n<td>JQuery\u3001React\u3001Angular<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u5904\u7406<\/td>\n<td>Pandas\u3001NumPy<\/td>\n<\/tr>\n<tr>\n<td>\u673a\u5668\u5b66\u4e60<\/td>\n<td>TensorFlow\u3001PyTorch<\/td>\n<\/tr>\n<tr>\n<td>\u8054\u7f51<\/td>\n<td>\u8bf7\u6c42\uff0cScapy<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u9875\u6293\u53d6<\/td>\n<td>BeautifulSoup\uff0cScrapy<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4f7f\u7528\u3001\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u5c3d\u7ba1\u5916\u90e8\u5e93\u6709\u5f88\u591a\u597d\u5904\uff0c\u4f46\u5b83\u4eec\u4e5f\u4f1a\u5e26\u6765\u95ee\u9898\u3002\u6f5c\u5728\u95ee\u9898\u5305\u62ec\u4f9d\u8d56\u51b2\u7a81\uff08\u4e24\u4e2a\u5e93\u9700\u8981\u53e6\u4e00\u4e2a\u5e93\u7684\u4e0d\u540c\u7248\u672c\uff09\u3001\u8fc7\u65f6\u6216\u65e0\u4eba\u7ef4\u62a4\u7684\u5e93\u4ee5\u53ca\u5b89\u5168\u6f0f\u6d1e\u3002<\/p>\n<p>\u8fd9\u4e9b\u95ee\u9898\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\u6765\u7f13\u89e3\uff0c\u4f8b\u5982\u4fdd\u6301\u5e93\u66f4\u65b0\u3001\u4f7f\u7528\u4f9d\u8d56\u7ba1\u7406\u5de5\u5177\u4ee5\u53ca\u5ba1\u67e5\u7b2c\u4e09\u65b9\u5e93\u7684\u8d28\u91cf\u548c\u652f\u6301\u3002<\/p>\n<h2>\u4e0e\u7c7b\u4f3c\u6982\u5ff5\u7684\u6bd4\u8f83<\/h2>\n<p>\u5916\u90e8\u5e93\u53ef\u4ee5\u4e0e\u5176\u4ed6\u76f8\u5173\u6982\u5ff5\u8fdb\u884c\u6bd4\u8f83\uff0c\u4f8b\u5982\u6846\u67b6\u548c API\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6982\u5ff5<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5916\u90e8\u5e93<\/td>\n<td>\u53ef\u91cd\u590d\u4f7f\u7528\u7684\u8f6f\u4ef6\u6a21\u5757\uff0c\u63d0\u4f9b\u51fd\u6570\u3001\u7c7b\u548c\u5176\u4ed6\u5de5\u5177\u96c6<\/td>\n<\/tr>\n<tr>\n<td>\u6846\u67b6<\/td>\n<td>\u66f4\u5e7f\u6cdb\u7684\u8f6f\u4ef6\u5f00\u53d1\u5e73\u53f0\uff0c\u901a\u5e38\u5305\u62ec\u591a\u4e2a\u5e93<\/td>\n<\/tr>\n<tr>\n<td>\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3<\/td>\n<td>\u5e93\u6216\u670d\u52a1\u63d0\u4f9b\u7684\u63a5\u53e3\uff0c\u5b9a\u4e49\u5176\u4ed6\u8f6f\u4ef6\u5982\u4f55\u4e0e\u5176\u4ea4\u4e92<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u672a\u6765\u5c55\u671b<\/h2>\n<p>\u5916\u90e8\u5e93\u7684\u672a\u6765\u53ef\u80fd\u4f1a\u53d7\u5230\u8f6f\u4ef6\u5f00\u53d1\u65b0\u5174\u8d8b\u52bf\u7684\u5f71\u54cd\uff0c\u4f8b\u5982\u5fae\u670d\u52a1\u3001\u65e0\u670d\u52a1\u5668\u8ba1\u7b97\u548c\u673a\u5668\u5b66\u4e60\u3002\u6211\u4eec\u53ef\u4ee5\u671f\u5f85\u770b\u5230\u65b0\u5e93\u7684\u51fa\u73b0\u4ee5\u4fc3\u8fdb\u8fd9\u4e9b\u9886\u57df\u7684\u53d1\u5c55\uff0c\u4ee5\u53ca\u73b0\u6709\u5e93\u7684\u4e0d\u65ad\u53d1\u5c55\u3002<\/p>\n<h2>\u5916\u90e8\u5e93\u548c\u4ee3\u7406\u670d\u52a1\u5668<\/h2>\n<p>\u5728 OneProxy \u7b49\u4ee3\u7406\u670d\u52a1\u5668\u63d0\u4f9b\u5546\u7684\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5916\u90e8\u5e93\u6765\u6784\u5efa\u5f3a\u5927\u3001\u9ad8\u6548\u7684\u4ee3\u7406\u670d\u52a1\u5668\u548c\u76f8\u5173\u5de5\u5177\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528 Node.js \u7684 http-proxy \u6216 Python \u7684 Twisted \u7b49\u5e93\u6765\u5b9e\u73b0\u6838\u5fc3\u4ee3\u7406\u529f\u80fd\uff0c\u800c BeautifulSoup \u6216 Puppeteer \u7b49\u5176\u4ed6\u5e93\u53ef\u7528\u4e8e\u6267\u884c\u7f51\u9875\u6293\u53d6\u7b49\u4efb\u52a1\u3002<\/p>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/JavaScript\/Building_blocks\/Modules\" target=\"_new\" rel=\"noopener nofollow\">MDN Web \u6587\u6863\uff1a\u5e93<\/a><\/li>\n<li><a href=\"https:\/\/docs.python.org\/3\/library\/\" target=\"_new\" rel=\"noopener nofollow\">Python \u6807\u51c6\u5e93<\/a><\/li>\n<li><a href=\"https:\/\/docs.oracle.com\/en\/java\/javase\/15\/docs\/api\/index.html\" target=\"_new\" rel=\"noopener nofollow\">Java \u6807\u51c6\u5e93<\/a><\/li>\n<li><a href=\"https:\/\/www.npmjs.com\/\" target=\"_new\" rel=\"noopener nofollow\">NPM\uff1aNode.js \u8f6f\u4ef6\u5305\u6ce8\u518c\u8868<\/a><\/li>\n<\/ul>","protected":false},"featured_media":468366,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-477167","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>External Libraries: The Building Blocks of Advanced Proxy Server Functionality<\/mark>","faq_items":[{"question":"What are external libraries?","answer":"<p>External libraries, often referred to as dependencies, are reusable software modules that can be incorporated into different programs or applications. They include sets of functions, classes, interfaces, data structures, and other tools that developers use to solve complex tasks efficiently.<\/p>"},{"question":"How did external libraries originate?","answer":"<p>The inception of external libraries dates back to the early days of structured programming in the 1960s, with modular programming languages like ALGOL. They've since evolved with programming languages, with a significant surge in their usage and development for web-related tasks with the advent of the internet.<\/p>"},{"question":"What is the structure of an external library?","answer":"<p>Typically, an external library consists of a collection of precompiled routines stored in a binary format. These can be loaded into memory and executed by a program when needed. Most libraries provide an Application Programming Interface (API) that defines how other software can interact with it.<\/p>"},{"question":"What are the key features of external libraries?","answer":"<p>Key features of external libraries include code reusability, abstraction, modularity, and community support. These features make libraries a crucial tool for developers.<\/p>"},{"question":"What types of external libraries exist?","answer":"<p>External libraries can be classified based on their function or the programming language they support. They can be involved in web development, data processing, machine learning, networking, and web scraping, among other areas.<\/p>"},{"question":"What problems can arise with the use of external libraries and how can they be solved?","answer":"<p>Potential problems with external libraries include dependency conflicts, outdated or unmaintained libraries, and security vulnerabilities. These issues can often be mitigated by keeping libraries up-to-date, using dependency management tools, and thoroughly vetting third-party libraries for quality and support.<\/p>"},{"question":"How are external libraries related to proxy servers?","answer":"<p>External libraries can play a significant role in building robust, efficient proxy servers and related tools. For a proxy server provider like OneProxy, libraries can be used to implement core proxy functionality and for tasks like web scraping.<\/p>"},{"question":"What is the future of external libraries?","answer":"<p>The future of external libraries is likely to be shaped by emerging trends in software development, such as microservices, serverless computing, and machine learning. This will lead to the creation of new libraries and the evolution of existing ones to facilitate these areas.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477167\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media\/468366"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=477167"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}