{ "info": { "author": "jundymek", "author_email": "jundymek@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\n# Free-proxy \n\n## Get free working proxy from https://www.sslproxies.org/ and use it in your script \n\nFreeProxy class scrapes proxies from https://www.sslproxies.org/ and checkes if proxy is working. There is posibility to \nfilter proxies by country and acceptable timeout. You can also randomize list of proxies from where script would get \nfirst working proxy. \n\nYou can use it in sending request through custom proxy, with selenium or wherever you want. \n\nReturns proxy as string: \n``` \n'113.160.218.14:8888' \n``` \n\n### Requirements \n\n* Python3 \n\n* Request library \n\n* Lxml library \n\n### Usage with examples \n\n\nParameter | Type| Example | Default value\n--- | --- | --- | --- \ncountry_id | str | 'US' | None\ntimeout | float > 0 |0.1 | 0.5\nrand | bool | True | False\n\n\n* **No parameters** \nGet first working proxy from 100 proxies from https://www.sslproxies.org/ \n```\nproxy = FreeProxy().get() \n``` \n* **`country_id` parameter** \nGet first working proxy from specified country. If there is no valid proxy from specified country check all countries \n``` \nproxy = FreeProxy(country_id='US').get() \n``` \n* **`timeout` parameter** \nTimeout is parameter for checking if proxy is valid. If test site doesn't respond in specified time \nscript marks this proxy as invalid. Default ```timeout=0.5```. You can change it by defining \nspecified timeout eg. ```timeout=1```. \n``` \nproxy = FreeProxt(timeut=1).get() \n``` \n* **`rand` parameter** \n```\nproxy = FreeProxy(rand=True).get() \n``` \n\nShuffles proxy list from https://www.sslproxies.org/. Default `rand=False` and searches for working proxy from newest \nto oldest (as they are listed in https://www.sslproxies.org/).\n\nYou can combine parameters: \n``` \nproxy = FreeProxy(country_id='US', timeout=0.3, rand=True).get() \n``` \n\nIf there is no working proxy script returns `None` \n\n\n\nLicense \n---- \n\nMIT \n\n\n**Free Software!**\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/jundymek/free-proxy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "free-proxy", "package_url": "https://pypi.org/project/free-proxy/", "platform": "", "project_url": "https://pypi.org/project/free-proxy/", "project_urls": { "Homepage": "https://github.com/jundymek/free-proxy" }, "release_url": "https://pypi.org/project/free-proxy/1.0.0/", "requires_dist": [ "lxml (>=4.3.0)", "requests (>=2.21.0)" ], "requires_python": "", "summary": "Proxy scraper for further use", "version": "1.0.0" }, "last_serial": 4776971, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7184070a086d92c828984d47970196f4", "sha256": "e3e8152af1533ba632eaa965ede071107fcfba17ca19d98f3064b1f47dd9b400" }, "downloads": -1, "filename": "free_proxy-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7184070a086d92c828984d47970196f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4275, "upload_time": "2019-02-04T09:37:50", "url": "https://files.pythonhosted.org/packages/2e/fa/d01b586a6cca1ae2c75657dac7a2e3b43767182c4d1a2bbcbe7f641acd8a/free_proxy-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3eb942d1458b4bb89efd706e560f5810", "sha256": "97e990e50633e1c552541f66b2eb78046707055fbda439866ea7e8ea37aefcb5" }, "downloads": -1, "filename": "free_proxy-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3eb942d1458b4bb89efd706e560f5810", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2926, "upload_time": "2019-02-04T09:37:52", "url": "https://files.pythonhosted.org/packages/5e/8f/16b83594ccd7cbe102ec1804e0f68838064684b45c02a661b2dc8392b115/free_proxy-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7184070a086d92c828984d47970196f4", "sha256": "e3e8152af1533ba632eaa965ede071107fcfba17ca19d98f3064b1f47dd9b400" }, "downloads": -1, "filename": "free_proxy-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7184070a086d92c828984d47970196f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4275, "upload_time": "2019-02-04T09:37:50", "url": "https://files.pythonhosted.org/packages/2e/fa/d01b586a6cca1ae2c75657dac7a2e3b43767182c4d1a2bbcbe7f641acd8a/free_proxy-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3eb942d1458b4bb89efd706e560f5810", "sha256": "97e990e50633e1c552541f66b2eb78046707055fbda439866ea7e8ea37aefcb5" }, "downloads": -1, "filename": "free_proxy-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3eb942d1458b4bb89efd706e560f5810", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2926, "upload_time": "2019-02-04T09:37:52", "url": "https://files.pythonhosted.org/packages/5e/8f/16b83594ccd7cbe102ec1804e0f68838064684b45c02a661b2dc8392b115/free_proxy-1.0.0.tar.gz" } ] }