pyfreeproxies


Namepyfreeproxies JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/Simatwa/pyfreeproxies
SummaryFree to use http, socks4 and socks5 proxies
upload_time2024-05-10 14:05:01
maintainerSmartwa
docs_urlNone
authorSmartwa
requires_python>=3.9
licenseGNUv3
keywords freeproxies proxies socks4 socks5 http
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> pyfreeproxies </h1>
<p align="center">
<!--
<a href="https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-test.yml"><img src="https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-test.yml/badge.svg" alt="Python Test"/></a>
-->
<a href="https://github.com/Simatwa/pyfreeproxies/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/static/v1?logo=GPL&color=Blue&message=GPLv3&label=License"/></a>
<a href=""><img alt="Python version" src="https://img.shields.io/pypi/pyversions/pyfreeproxies"/></a>
<a href="https://pypi.org/project/pyfreeproxies"><img alt="PyPi" src="https://img.shields.io/pypi/v/pyfreeproxies?color=green"/></a>
<a href="https://github.com/psf/black"><img alt="Black" src="https://img.shields.io/badge/code%20style-black-000000.svg"/></a>
<a href="https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-package.yml"><img alt="Python Package flow" src="https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-package.yml/badge.svg?branch=master"/></a>
<a href="https://pepy.tech/project/pyfreeproxies"><img src="https://static.pepy.tech/personalized-badge/pyfreeproxies?period=total&units=international_system&left_color=grey&right_color=blue&left_text=Downloads" alt="Downloads"></a>
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com/Simatwa/pyfreeproxies"/></a>      
<a href="https://wakatime.com/badge/github/Simatwa/pyfreeproxies"><img src="https://wakatime.com/badge/github/Simatwa/pyfreeproxies.svg" alt="wakatime"></a>
</p>

> Free to use http, socks4 and socks5 proxies based on [free-proxies](https://github.com/Simatwa/free-proxies).

## Installation

```
pip install -U pyfreeproxies
```

## Usage 

1. FreeProxies

   ```python
   from pyfreeproxies import FreeProxies
   proxy = FreeProxies()
   proxy.get_http_proxies() # http proxies
   proxy.get_socks4_proxies() # socks4 proxies 
   proxy.get_socks5_proxies() # socks 5 proxies
   proxy.get_combined_proxies() # http, socks4, socks5 combined.
   proxy.get_random_proxies() # Select from the lists randomly. 
   proxy.get_confirmed_working_proxies() # list of functional tested proxies. Support filters.
   proxy.get_proxies_metadata({"country": "United States",}) # filter with proxy metadata keys.
   proxy.proxies_update_available # check if there's an update to proxies.
   ```

---

2. Update Aware FreeProxies

   ```python
   from pyfreeproxies import UpdateAwareFreeProxies
   proxy = UpdateAwareFreeProxies()
   proxy.get_http_proxies() # http proxies
   proxy.get_socks4_proxies() # socks4 proxies 
   proxy.get_socks5_proxies() # socks 5 proxies
   proxy.get_combined_proxies() # http, socks4, socks5 combined.
   proxy.get_random_proxies() # Select from the lists randomly. 
   proxy.get_confirmed_working_proxies() # list of functional tested proxies. Support filters.
   proxy.get_proxies_metadata({"country": "United States",}) # filter with proxy metadata keys.
   proxy.is_update_available # check if there's an update to proxies.
   ```

---

3. IP Metadata

   ```python
   from pyfreeproxies import FreeProxies
   import pyfreeproxies.utils as proxies_util
   http_proxies = FreeProxies().get_http_proxies()
   proxy_metadata = proxies_util.trace_ip(http_proxies[0])
   print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'>
   """
   status='success' country='Vietnam' countryCode='VN' region='CT' regionName='Can Tho' city='Can Tho' zip='' lat=10.0359 lon=105.7808 timezone='Asia/Ho_Chi_Minh' isp='Viettel Corporation' org='VIETEL' as_='AS7552 Viettel Group' query='171.248.211.25' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None
   """
   ```

---

4. Your IP Metadata

   ```python
   import pyfreeproxies.utils as proxies_util
   proxy_metadata = proxies_util.trace_me()
   print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'>
   """
   status='success' country='Kenya' countryCode='KE' region='30' regionName='Nairobi County' city='Nairobi' zip='09831' lat=-1.28642 lon=*6.8198 timezone='Africa/Nairobi' isp='Jambonet Autonomous System' org='Telephone House' as_='AS12455 Kenyan Post & Telecommunications Company / Telkom Kenya Ltd' query='*1*.167.250.187' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None
   """
   ```

---

<h3 align="center">Disclaimer</h3>

Please note that this project may involve the use of proxies for various purposes, including but not limited to, web scraping, data collection, or bypassing internet restrictions. It is the user's responsibility to ensure that their use of the project complies with all applicable laws and regulations, including but not limited to, copyright laws, privacy laws, and terms of service of the websites or services being accessed through the proxies.

The authors and contributors of **'freeproxies'** are not responsible for any misuse of the project, including but not limited to, any legal consequences that may arise from its use.

---

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Simatwa/pyfreeproxies",
    "name": "pyfreeproxies",
    "maintainer": "Smartwa",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "freeproxies, proxies, socks4, socks5, http",
    "author": "Smartwa",
    "author_email": "simatwacaleb@proton.me",
    "download_url": "https://files.pythonhosted.org/packages/ec/16/6e11d1d13be0a0d1168c866ed1710693e1b28cfa94191fcc70975245ef30/pyfreeproxies-0.1.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> pyfreeproxies </h1>\n<p align=\"center\">\n<!--\n<a href=\"https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-test.yml\"><img src=\"https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-test.yml/badge.svg\" alt=\"Python Test\"/></a>\n-->\n<a href=\"https://github.com/Simatwa/pyfreeproxies/blob/main/LICENSE\"><img alt=\"License\" src=\"https://img.shields.io/static/v1?logo=GPL&color=Blue&message=GPLv3&label=License\"/></a>\n<a href=\"\"><img alt=\"Python version\" src=\"https://img.shields.io/pypi/pyversions/pyfreeproxies\"/></a>\n<a href=\"https://pypi.org/project/pyfreeproxies\"><img alt=\"PyPi\" src=\"https://img.shields.io/pypi/v/pyfreeproxies?color=green\"/></a>\n<a href=\"https://github.com/psf/black\"><img alt=\"Black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"/></a>\n<a href=\"https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-package.yml\"><img alt=\"Python Package flow\" src=\"https://github.com/Simatwa/pyfreeproxies/actions/workflows/python-package.yml/badge.svg?branch=master\"/></a>\n<a href=\"https://pepy.tech/project/pyfreeproxies\"><img src=\"https://static.pepy.tech/personalized-badge/pyfreeproxies?period=total&units=international_system&left_color=grey&right_color=blue&left_text=Downloads\" alt=\"Downloads\"></a>\n<a href=\"https://hits.seeyoufarm.com\"><img src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com/Simatwa/pyfreeproxies\"/></a>      \n<a href=\"https://wakatime.com/badge/github/Simatwa/pyfreeproxies\"><img src=\"https://wakatime.com/badge/github/Simatwa/pyfreeproxies.svg\" alt=\"wakatime\"></a>\n</p>\n\n> Free to use http, socks4 and socks5 proxies based on [free-proxies](https://github.com/Simatwa/free-proxies).\n\n## Installation\n\n```\npip install -U pyfreeproxies\n```\n\n## Usage \n\n1. FreeProxies\n\n   ```python\n   from pyfreeproxies import FreeProxies\n   proxy = FreeProxies()\n   proxy.get_http_proxies() # http proxies\n   proxy.get_socks4_proxies() # socks4 proxies \n   proxy.get_socks5_proxies() # socks 5 proxies\n   proxy.get_combined_proxies() # http, socks4, socks5 combined.\n   proxy.get_random_proxies() # Select from the lists randomly. \n   proxy.get_confirmed_working_proxies() # list of functional tested proxies. Support filters.\n   proxy.get_proxies_metadata({\"country\": \"United States\",}) # filter with proxy metadata keys.\n   proxy.proxies_update_available # check if there's an update to proxies.\n   ```\n\n---\n\n2. Update Aware FreeProxies\n\n   ```python\n   from pyfreeproxies import UpdateAwareFreeProxies\n   proxy = UpdateAwareFreeProxies()\n   proxy.get_http_proxies() # http proxies\n   proxy.get_socks4_proxies() # socks4 proxies \n   proxy.get_socks5_proxies() # socks 5 proxies\n   proxy.get_combined_proxies() # http, socks4, socks5 combined.\n   proxy.get_random_proxies() # Select from the lists randomly. \n   proxy.get_confirmed_working_proxies() # list of functional tested proxies. Support filters.\n   proxy.get_proxies_metadata({\"country\": \"United States\",}) # filter with proxy metadata keys.\n   proxy.is_update_available # check if there's an update to proxies.\n   ```\n\n---\n\n3. IP Metadata\n\n   ```python\n   from pyfreeproxies import FreeProxies\n   import pyfreeproxies.utils as proxies_util\n   http_proxies = FreeProxies().get_http_proxies()\n   proxy_metadata = proxies_util.trace_ip(http_proxies[0])\n   print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'>\n   \"\"\"\n   status='success' country='Vietnam' countryCode='VN' region='CT' regionName='Can Tho' city='Can Tho' zip='' lat=10.0359 lon=105.7808 timezone='Asia/Ho_Chi_Minh' isp='Viettel Corporation' org='VIETEL' as_='AS7552 Viettel Group' query='171.248.211.25' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None\n   \"\"\"\n   ```\n\n---\n\n4. Your IP Metadata\n\n   ```python\n   import pyfreeproxies.utils as proxies_util\n   proxy_metadata = proxies_util.trace_me()\n   print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'>\n   \"\"\"\n   status='success' country='Kenya' countryCode='KE' region='30' regionName='Nairobi County' city='Nairobi' zip='09831' lat=-1.28642 lon=*6.8198 timezone='Africa/Nairobi' isp='Jambonet Autonomous System' org='Telephone House' as_='AS12455 Kenyan Post & Telecommunications Company / Telkom Kenya Ltd' query='*1*.167.250.187' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None\n   \"\"\"\n   ```\n\n---\n\n<h3 align=\"center\">Disclaimer</h3>\n\nPlease note that this project may involve the use of proxies for various purposes, including but not limited to, web scraping, data collection, or bypassing internet restrictions. It is the user's responsibility to ensure that their use of the project complies with all applicable laws and regulations, including but not limited to, copyright laws, privacy laws, and terms of service of the websites or services being accessed through the proxies.\n\nThe authors and contributors of **'freeproxies'** are not responsible for any misuse of the project, including but not limited to, any legal consequences that may arise from its use.\n\n---\n",
    "bugtrack_url": null,
    "license": "GNUv3",
    "summary": "Free to use http, socks4 and socks5 proxies",
    "version": "0.1.1",
    "project_urls": {
        "Bug Report": "https://github.com/Simatwa/pyfreeproxies/issues/new",
        "Documentation": "https://github.com/Simatwa/pyfreeproxies/blob/main/docs",
        "Download": "https://github.com/Simatwa/pyfreeproxies/releases",
        "Homepage": "https://github.com/Simatwa/pyfreeproxies",
        "Issue Tracker": "https://github.com/Simatwa/pyfreeproxies/issues",
        "Source Code": "https://github.com/Simatwa/pyfreeproxies"
    },
    "split_keywords": [
        "freeproxies",
        " proxies",
        " socks4",
        " socks5",
        " http"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7f4050b7c78a2b5ac5b8259718418263ade184f21f3f3e8527ebed62495c0e7",
                "md5": "f875934a6e3ab7de217a723cbd3b2a97",
                "sha256": "2252cf7166d6c7c20899c08c53b04ff7ba0a1905f2586ac83e7287428532279c"
            },
            "downloads": -1,
            "filename": "pyfreeproxies-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f875934a6e3ab7de217a723cbd3b2a97",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 19464,
            "upload_time": "2024-05-10T14:04:58",
            "upload_time_iso_8601": "2024-05-10T14:04:58.809672Z",
            "url": "https://files.pythonhosted.org/packages/e7/f4/050b7c78a2b5ac5b8259718418263ade184f21f3f3e8527ebed62495c0e7/pyfreeproxies-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec166e11d1d13be0a0d1168c866ed1710693e1b28cfa94191fcc70975245ef30",
                "md5": "b58b0f09bbc4750754a08c7b1841fe97",
                "sha256": "d844ce75ba5dd1b3a70128f13e2d4e541e8a86c2a38b0662213754ad27f46d17"
            },
            "downloads": -1,
            "filename": "pyfreeproxies-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b58b0f09bbc4750754a08c7b1841fe97",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 20954,
            "upload_time": "2024-05-10T14:05:01",
            "upload_time_iso_8601": "2024-05-10T14:05:01.118947Z",
            "url": "https://files.pythonhosted.org/packages/ec/16/6e11d1d13be0a0d1168c866ed1710693e1b28cfa94191fcc70975245ef30/pyfreeproxies-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-10 14:05:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Simatwa",
    "github_project": "pyfreeproxies",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pyfreeproxies"
}
        
Elapsed time: 0.23593s