{ "info": { "author": "Pablo Ahumada, Jorge Capona", "author_email": "pablo.ahumadadiaz@gmail.com, jcapona@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Software Development", "Topic :: System" ], "description": "fake-proxy\n==========\n\nOpen source library that finds public proxies from several sources.\n\n\nUsage\n-----\n\nThe package must be imported and used through it's API.\n\n\n`get(amount, proxy_type)`\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe main function is `get`, which receives 2 parameters:\n- `amount` which specifies the amount of proxies required\n- `proxy_type` which specifies the type of proxy (https, http, socks4)\n\n.. code-block:: python\n\n >>> import fake_proxy\n >>> fake_proxy.get()\n [{'ip': '188.166.83.20', 'port': '3128', 'country_code': 'NL', 'country': 'Netherlands', 'type': 'http'}]\n >>> fake_proxy.get(amount=3)\n [{'ip': '89.20.135.204', 'port': '10000', 'country_code': 'RU', 'country': 'Russian Federation', 'type': 'http'},\n {'ip': '165.22.154.157', 'port': '3128', 'country_code': 'US', 'country': 'United States', 'type': 'http'},\n {'ip': '62.182.206.19', 'port': '37715', 'country_code': 'RU', 'country': 'Russian Federation', 'type': 'http'}]\n >>> fake_proxy.get(proxy_type='https')\n [{'ip': '36.92.108.150', 'port': '3128', 'country_code': 'ID', 'country': 'Indonesia', 'type': 'https'}]\n\n\n`get_by_source(source_name, amount, proxy_type)`\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSimilar to `get()`, but lets you specify a particular source from which to obtain a proxy.\n- `source_name`: name of the source from which to get a proxy\n- `amount`: specifies the amount of proxies required\n- `proxy_type`: specifies the type of proxy (https, http, socks4)\n\n.. code-block:: python\n\n >>> import fake_proxy\n >>> fake_proxy.get_from_source(source_name='free-proxy-list.net', amount=2, proxy_type='http')\n [{'ip': '76.87.101.188', 'port': '38875', 'country_code': 'US', 'country': 'United States', 'type': 'http'},\n {'ip': '62.182.206.19', 'port': '37715', 'country_code': 'RU', 'country': 'Russian Federation', 'type': 'http'}]\n\n\n`proxy_sources()`\n~~~~~~~~~~~~~~~~~\n\nReturns a list with the names of all the sources from which the library fetches proxies.\n\n.. code-block:: python\n\n >>> import fake_proxy\n >>> fake_proxy.proxy_sources()\n {'https': ['free-proxy-list.net'],\n 'socks4': ['socks-proxy.net'],\n 'http': ['free-proxy-list.net']}\n\n\n`reload()`\n~~~~~~~~~~\n\nFetches new proxies from the proxy sources.\n\n\nSources\n-------\n\nFor the moment, the library fetches the proxies from the following sources:\n\n+------------------------------+-------------+\n| Source URL | Proxy Types |\n+==============================+=============+\n| https://free-proxy-list.net/ | HTTP, HTTPS |\n+------------------------------+-------------+\n| https://www.sslproxies.org/ | HTTPS |\n+------------------------------+-------------+\n| https://www.socks-proxy.net/ | SOCKS4 |\n+------------------------------+-------------+\n\n\nInstallation\n------------\n\nLatest release through PyPI:\n\n.. code-block:: sh\n\n $ pip install fake-proxy\n\nDevelopment version:\n\n.. code-block:: sh\n\n $ git clone git@github.com:machinia/fake-proxy.git\n $ cd fake-proxy\n $ pip install -e .\n\n\nContribution\n------------\n\nContributions are welcome! Feel free to report bugs or open an issue if you feel a new feature is needed. Pull requests are welcome!\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/machinia/fake-proxy", "keywords": "proxy proxies rotate scrape", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fake-proxy", "package_url": "https://pypi.org/project/fake-proxy/", "platform": "", "project_url": "https://pypi.org/project/fake-proxy/", "project_urls": { "Homepage": "https://github.com/machinia/fake-proxy" }, "release_url": "https://pypi.org/project/fake-proxy/0.1.1/", "requires_dist": [ "beautifulsoup4 (<5,>=4.8)", "requests (<3,>=2.22)" ], "requires_python": "", "summary": "Library that finds public proxies", "version": "0.1.1" }, "last_serial": 5850300, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f7024194301600b9b1328895d22c192c", "sha256": "5efa9ae3d9ff514122e96390b8ca94e4d27f53c8b0acd72c92b1bc29475679da" }, "downloads": -1, "filename": "fake_proxy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f7024194301600b9b1328895d22c192c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10150, "upload_time": "2019-09-18T02:41:02", "url": "https://files.pythonhosted.org/packages/74/c9/b43530f6487ebd11af84f4f3060e66e05650d807b963bd1af33185df6129/fake_proxy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f48beebec3a8e205ea8b1ed9cca5618a", "sha256": "a7a28bfa2b5a37c2028eb03a10cb1ad6d4c143ea3b389ff552ef36e859755704" }, "downloads": -1, "filename": "fake-proxy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f48beebec3a8e205ea8b1ed9cca5618a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15164, "upload_time": "2019-09-18T02:41:05", "url": "https://files.pythonhosted.org/packages/cf/09/cf238939deca0eb60818fc97cb3dc048dcaa802c534ca309f61cdfb71cad/fake-proxy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dda86882db8eef61d80e36b4b3e8ad44", "sha256": "3b226533e3e218497849810e54f0ba62aae9c6767715e92aaed2d3e9651439a3" }, "downloads": -1, "filename": "fake_proxy-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "dda86882db8eef61d80e36b4b3e8ad44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14045, "upload_time": "2019-09-18T13:33:16", "url": "https://files.pythonhosted.org/packages/26/52/87b1267174c95abf56b6cb0bb979db10af1d04071cebe789f182fad42866/fake_proxy-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db363befd59bf75bf2f855809e4bf1a7", "sha256": "d9d0cd98447a4fcbf2f55bb6cfcc8b84911c1da201616ab70ac21d03613fc33f" }, "downloads": -1, "filename": "fake-proxy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "db363befd59bf75bf2f855809e4bf1a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15192, "upload_time": "2019-09-18T13:33:18", "url": "https://files.pythonhosted.org/packages/83/af/e280bfddb0badd83c66a631aebf6d49afe643d8515cce847b987a3425db2/fake-proxy-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dda86882db8eef61d80e36b4b3e8ad44", "sha256": "3b226533e3e218497849810e54f0ba62aae9c6767715e92aaed2d3e9651439a3" }, "downloads": -1, "filename": "fake_proxy-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "dda86882db8eef61d80e36b4b3e8ad44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14045, "upload_time": "2019-09-18T13:33:16", "url": "https://files.pythonhosted.org/packages/26/52/87b1267174c95abf56b6cb0bb979db10af1d04071cebe789f182fad42866/fake_proxy-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db363befd59bf75bf2f855809e4bf1a7", "sha256": "d9d0cd98447a4fcbf2f55bb6cfcc8b84911c1da201616ab70ac21d03613fc33f" }, "downloads": -1, "filename": "fake-proxy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "db363befd59bf75bf2f855809e4bf1a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15192, "upload_time": "2019-09-18T13:33:18", "url": "https://files.pythonhosted.org/packages/83/af/e280bfddb0badd83c66a631aebf6d49afe643d8515cce847b987a3425db2/fake-proxy-0.1.1.tar.gz" } ] }