1 unstable release
0.1.0 | Jan 10, 2024 |
---|
#548 in Asynchronous
13KB
88 lines
Proxy Scraper
The Proxy Scraper is a Rust command-line tool that allows users to scrape proxy information from URLs.
Features
- Scraping: Fetch and scrape proxy information from a specified URL.
- Proxy Types: Currently supports MTProxy with extensibility for additional proxy types.
- Asynchronous: Utilizes asynchronous programming using the Tokio runtime for improved performance.
Usage
Installation
-
Ensure you have Rust and Cargo installed. If not, follow the instructions at Rust Installation.
-
Clone the repository:
git clone https://github.com/zolagonano/proxy-scraper.git
-
Navigate to the project directory:
cd proxy-scraper
-
Build the project:
cargo build --release
Command-line Usage
Run the built executable with the desired parameters:
./target/release/proxy-scraper --source <PROXY_SOURCE_URL> --proxy_type <PROXY_TYPE>
<PROXY_SOURCE_URL>
: The URL containing proxy information.<PROXY_TYPE>
: The type of proxy to scrape (default: "mtproxy").
Example
./target/release/proxy-scraper --source https://example.com/proxies --proxy_type mtproxy
Configuration
The tool uses argh for command-line argument parsing. The available options are:
--source
: Specifies the URL source for proxy information.--proxy_type
: Specifies the type of proxy to scrape (default: "mtproxy").
Dependencies
- reqwest: HTTP client for making requests.
- tokio: Asynchronous runtime for Rust.
- argh: A simple argument parsing library.
Building from Source
To build the project from source, follow these steps:
-
Clone the repository:
git clone https://github.com/your_username/proxy-scraper.git
-
Navigate to the project directory:
cd proxy-scraper
-
Build the project:
cargo build --release
Support
If you find My works helpful and would like to support me, consider making a donation. Your contributions will help to ensure the ongoing maintenance and improvement of these projects.
https://zolagonano.github.io/support
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~8–23MB
~334K SLoC