{ "info": { "author": "cn", "author_email": "cnaafhvk@foxmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# \u8d85\u7b80\u5355\u8d85\u597d\u7528\u7684\u5916\u8bed\u8f6c\u4e2d\u6587\u7ffb\u8bd1\u7a0b\u5e8f\n\u9002\u5408\u7ffb\u8bd1html\uff0c\u5176\u4e2dhtml\u6807\u7b7e\u4e0d\u4f1a\u88ab\u7ffb\u8bd1\uff0c\u4ec5\u7ffb\u8bd1\u6807\u7b7e\u4e4b\u95f4\u7684\u6709\u6548\u5b57\u7b26\n\n## INSTALL\n```\npip install translate-html\n```\n\n## USAGE\n```\nusage: translate.py [-h] [-ws WEB_SITE] [-pl PROXY_LIST] [-pa PROXY_AUTH]\n [-rt RETRY_TIMES] [-tt TRANSLATE_TIMEOUT]\n [-lm LOAD_MODULE]\n src\n\npositional arguments:\n src The html you want to translate.\n\noptional arguments:\n -h, --help show this help message and exit\n -ws WEB_SITE, --web-site WEB_SITE\n Which site do you want to use for translating, split\n by `,`? default: baidu,youdao\n -pl PROXY_LIST, --proxy-list PROXY_LIST\n The proxy.list contains proxy to use for translate.\n default: ./proxy.list\n -pa PROXY_AUTH, --proxy-auth PROXY_AUTH\n Proxy password if have. eg. user:password\n -rt RETRY_TIMES, --retry-times RETRY_TIMES\n If translate failed retry times. default: 10\n -tt TRANSLATE_TIMEOUT, --translate-timeout TRANSLATE_TIMEOUT\n Translate timeout. default: 5\n -lm LOAD_MODULE, --load-module LOAD_MODULE\n The module contains custom web site functions which\n may translate. eg: trans.google\n```\n\n## HELLOWORLD\n### demo1\n\u76f4\u63a5\u7ffb\u8bd1\n```\nubuntu@dev:~/myprojects/translate_html$ translate my\n\u6211\u7684\nubuntu@dev:~/myprojects/translate_html$ translate \"
You can install httpbin as a library from PyPI and run it as a WSGI app. For example, using Gunicorn:
\n...\n...$ pip install httpbin\n... $ gunicorn httpbin:app\n... \n...\n... \u4f60\u53ef\u4ee5\u5b89\u88c5httpbin\u4ecePyPI\u56fe\u4e66\u9986\u4f5c\u4e3a\u4e00\u4e2aWSGI\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528gunicorn\uff1a
\u7f8e\u5143httpbin pip\u5b89\u88c5gunicorn\u7f8e\u5143httpbin\uff1aAPP