Go to file
Adil Sadqi 8082f3fe1c Update README.md 2024-12-23 12:06:18 +00:00
README.md Update README.md 2024-12-23 12:06:18 +00:00
proxies_collector.py Add files via upload 2024-12-22 11:17:33 -05:00
requirements.txt Add files via upload 2024-12-22 11:17:33 -05:00

README.md

Proxies Collector

Overview

Proxies Collector is a Python-based tool to fetch, verify, and save free proxies from various online sources. This tool leverages Selenium and the Requests library to extract proxy lists from dynamic and static websites. It is a handy utility for developers, web scrapers, and researchers.

Features

  • Fetch proxies from multiple trusted sources.
  • Verify the proxies for connectivity and usability.
  • Save verified proxies to a file for easy access.

Requirements

  • Python 3.7+
  • Google Chrome browser
  • ChromeDriver

Installation

  1. Clone the repository:

    git clone https://cerus.eu.org/adil/proxy-finder.git
    cd proxies-finder
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Install ChromeDriver:

    • Download the appropriate version of ChromeDriver for your Chrome browser from ChromeDriver.
    • Place the downloaded file in a directory listed in your PATH or specify its path in the code.

Usage

  1. Run the script:

    python proxies_collector.py
    
  2. The tool will:

    • Fetch proxies from multiple sources.
    • Verify their connectivity.
    • Save working proxies to a file named verified_proxies.txt.

Code Overview

Key Functions

  • fetch_proxies() Fetches proxies from various online sources using Selenium and Requests.

  • verify_proxies(proxies) Tests the fetched proxies for connectivity by sending requests to https://httpbin.org/ip.

  • save_proxies_to_file(proxies, file_name) Saves the list of verified proxies to a specified file.

Entry Point

The script starts execution from:

if __name__ == "__main__":
    # Fetch, verify, and save proxies

Notes

  • The script uses Selenium with the ChromeDriver for fetching proxies from dynamic websites.
  • Ensure the chromedriver binary is correctly set up.
  • The proxies.txt file will be overwritten each time the script runs.

Banner

At the beginning of the script, a banner is displayed:

===========================================================
    ██████╗ ██████╗  ██████╗ ██╗  ██╗██╗███████╗███████╗
    ██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝██║██╔════╝██╔════╝
    ██████╔╝██████╔╝██║   ██║ ╚███╔╝ ██║█████╗  ███████╗
    ██╔═══╝ ██╔══██╗██║   ██║ ██╔██╗ ██║██╔══╝  ╚════██║
    ██║     ██║  ██║╚██████╔╝██╔╝ ██╗██║███████╗███████║
    ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝
           Proxies Collector Created - By ASADQI
               Website: https://asadqi.com
===========================================================

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

ASADQI
Website: https://asadqi.com