This script is designed to download and verify HTTP/s and SOCKS5 proxies from public databases and files. It offers the following key features:
- Configurable Threading: Adjust the number of threads based on your system's capability using a
usage_level
setting from 1 to 3. - Scraping Proxies: Automatically scrape HTTP/s and SOCKS5 proxies from various online sources.
- Checking Proxies: Validate the functionality of the scraped proxies to ensure they are operational.
- System Monitoring: Display the script's CPU and RAM usage in the console title for real-time performance monitoring.
-
Installation:
- Clone the repository or download the .zip file.
- Navigate to the project directory.
-
Running the Script:
- Execute the script using:
or
start.bat
python main.py
- Execute the script using:
-
Configuration:
- The script uses a
config.json
file to manage settings. - Adjust the
usage_level
, and specify the list of URLs for HTTP/s and SOCKS5 proxies.
- The script uses a
-
Educational & Research Purposes Only:
- This script is intended for educational and research purposes only. Use it responsibly and in accordance with applicable laws.
- Python 3.8+
- All necessary packages are automatically installed when the script is run.
{
"usage_level": 2,
"http_links": [
"https://api.proxyscrape.com/?request=getproxies&proxytype=https&timeout=10000&country=all&ssl=all&anonymity=all",
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all"
],
"socks5_links": [
"https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/SOCKS5.txt",
"https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/socks5.txt"
]
}
By following this documentation, you should be able to set up, run, and understand the Proxy Scraper and Checker script with ease.
For educational & research purposes only!
Generates a random folder name with the specified length.
Removes old folders with 32 character names in the base folder.
Returns the current time formatted as HH:MM:SS.
Converts the usage level integer to a string representation.
Updates the console title with current CPU, RAM usage, and validation counts.
Centers the text within the given width.
Clears the console and displays the main UI with ASCII art.
Scrapes proxies from the given link, retries up to 3 times in case of failure.
Checks if a proxy link is accessible.
Cleans the proxy links by removing non-accessible ones.
Scrapes proxies from the provided list of links and saves them to a file.
Checks the validity of an HTTP/s proxy by making a request to httpbin.org.
Checks the validity of a SOCKS5 proxy by connecting to google.com.
Checks a list of HTTP/s proxies for validity.
Checks a list of SOCKS5 proxies for validity.
Handles SIGINT signal (Ctrl+C) to exit gracefully.
Sets the process priority to high for better performance.
Displays a loading animation while verifying proxy links.
Clears the console screen.
Continuously updates the console title with current status.