{ "info": { "author": "Coiby", "author_email": "Coiby.Xu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet", "Topic :: Internet :: Proxy Servers", "Topic :: Internet :: WWW/HTTP" ], "description": "# Caching Proxy \n\nCProxy (CP) is a HTTP caching proxy server written in Python 3. With the aim of being able to surf the Internet completely offline, it will intercept Browser's HTTPs requests and decrypt the the traffic on-the-fly to store each successful HTTP response. \n\nThis work is inspired by [coursera-dl](https://github.com/coursera-dl/coursera-dl) and [edx-dl](https://github.com/coursera-dl/edx-dl).\n\n## Installation\n\n```bash\npip3 install cproxy\n```\n\nIf you want to install CP manually, you should install the following packages\n\n- pyOpenSSL\n- brotli\n- chardet\n\nOr simple run `pip install -r requirements.txt` in the package's home directory.\n\n## Usage\n\n1. Run the program by executing \n\n ```bash\n $ cproxy\n ```\n\n2. Change browser's proxy setting to\n\n ```bash\n http://loaclhost:8080\n ```\n\n3. Visit \"http://cp.ca\" to install Certificate Authority (CA) (this is required. Otherwise you can only visit http websites off-line). For more detailed guidance, please refer [mitmproxy - Certificates](https://docs.mitmproxy.org/stable/concepts-certificates/).\n\n4. Viola, you can browse your favorite websites now. \n\n5. When disconnected from the Internet later, you can still visit those websites off-line. Or you can explicitly tell CP to use off-line mode\n\n ```bash\n cproxy -off\n ```\n\n6. For more options, run `cproxy -h`\n\n ```bash\n $ cproxy -h \n usage: CachingProxy arguments [-h] [-cd CACHE_DIR] [-p PORT] [-off] [-d]\n\n optional arguments:\n -h, --help show this help message and exit\n -cd CACHE_DIR, --cache_dir CACHE_DIR\n where to store caches\n -p PORT, --port PORT server listening port\n -off, --offline Offline mode\n -d, --debug Enable debugging mode\n ```\n\n\n\n## TODOs\n\n- [x] Caching HTTP/HTTPS websites\n- [x] IPv6 support\n- [ ] Pre-fetching\n- [ ] Proxy (use proxychains for now)\n- [ ] Youtube support (lots of edx's videos are hosted on youtube. For now, youtube will be blocked when you visit course.edx.org thus to force player to use other video sources)\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coiby/CProxy", "keywords": "", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "CProxy", "package_url": "https://pypi.org/project/CProxy/", "platform": "", "project_url": "https://pypi.org/project/CProxy/", "project_urls": { "Homepage": "https://github.com/coiby/CProxy" }, "release_url": "https://pypi.org/project/CProxy/0.1a1/", "requires_dist": [ "pyOpenSSL", "brotli", "chardet" ], "requires_python": "", "summary": "A HTTP/HTTPS Caching Proxy", "version": "0.1a1" }, "last_serial": 5111488, "releases": { "0.1a0": [ { "comment_text": "", "digests": { "md5": "c1968483923341989538d3908a15b3a0", "sha256": "628914f6e7c38f7b7bfc08fd963d56d45a348df65c807f05dbe8c1c034a4e6d2" }, "downloads": -1, "filename": "CProxy-0.1a0-py3-none-any.whl", "has_sig": false, "md5_digest": "c1968483923341989538d3908a15b3a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27507, "upload_time": "2019-04-08T01:00:21", "url": "https://files.pythonhosted.org/packages/dc/83/e693f6cc39d737702fb3b2b95839652c38b73df72d3314c1cd85bce3cc22/CProxy-0.1a0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c122302ec503b77c4581c56994c16f03", "sha256": "0dc7e24f5fdf0edb072b7d267d5d96455e5fc45299841c58809e66ae4f572257" }, "downloads": -1, "filename": "CProxy-0.1a0.tar.gz", "has_sig": false, "md5_digest": "c122302ec503b77c4581c56994c16f03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18112, "upload_time": "2019-04-08T01:00:24", "url": "https://files.pythonhosted.org/packages/ae/ca/3872f7c2e91ba50b09d11fbde334b59d987b43d43fe75a18e779bd660bc5/CProxy-0.1a0.tar.gz" } ], "0.1a1": [ { "comment_text": "", "digests": { "md5": "854354a5895d9ba048e3d8aabd9357f7", "sha256": "9bb6588e1f425ee1931904d3611470c17abf426ea352d46bd0e7158ebd6f5b01" }, "downloads": -1, "filename": "CProxy-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "854354a5895d9ba048e3d8aabd9357f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28012, "upload_time": "2019-04-08T01:15:47", "url": "https://files.pythonhosted.org/packages/4d/49/2aa6d59e30bd1df6a1b89b6ba4ab6ae26a87063b99de2612d5acd97f5ac3/CProxy-0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f24f96a5ca341278feb7001c0e6f9c5", "sha256": "d3a6bccc1db67e21d1ae91f6d5906b768e8b9abaf3d1b897cd1a7c88ce676efb" }, "downloads": -1, "filename": "CProxy-0.1a1.tar.gz", "has_sig": false, "md5_digest": "0f24f96a5ca341278feb7001c0e6f9c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18562, "upload_time": "2019-04-08T01:15:49", "url": "https://files.pythonhosted.org/packages/65/6c/618ba138bbc0728b9e1a684c3cc1ca1526f6adef5a2a952acbd5f49c669e/CProxy-0.1a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "854354a5895d9ba048e3d8aabd9357f7", "sha256": "9bb6588e1f425ee1931904d3611470c17abf426ea352d46bd0e7158ebd6f5b01" }, "downloads": -1, "filename": "CProxy-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "854354a5895d9ba048e3d8aabd9357f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28012, "upload_time": "2019-04-08T01:15:47", "url": "https://files.pythonhosted.org/packages/4d/49/2aa6d59e30bd1df6a1b89b6ba4ab6ae26a87063b99de2612d5acd97f5ac3/CProxy-0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f24f96a5ca341278feb7001c0e6f9c5", "sha256": "d3a6bccc1db67e21d1ae91f6d5906b768e8b9abaf3d1b897cd1a7c88ce676efb" }, "downloads": -1, "filename": "CProxy-0.1a1.tar.gz", "has_sig": false, "md5_digest": "0f24f96a5ca341278feb7001c0e6f9c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18562, "upload_time": "2019-04-08T01:15:49", "url": "https://files.pythonhosted.org/packages/65/6c/618ba138bbc0728b9e1a684c3cc1ca1526f6adef5a2a952acbd5f49c669e/CProxy-0.1a1.tar.gz" } ] }