Crates.io | proxy-scraper |
lib.rs | proxy-scraper |
version | 0.2.0 |
source | src |
created_at | 2024-01-10 14:37:57.249462 |
updated_at | 2024-05-03 10:11:55.129041 |
description | A Rust command-line tool for scraping proxy information. |
homepage | https://github.com/zolagonano/proxy_scraper.git |
repository | https://github.com/zolagonano/proxy_scraper.git |
max_upload_size | |
id | 1095256 |
size | 64,792 |
The Proxy Scraper is a Rust command-line tool and library that allows users to scrape proxy information from URLs.
The Proxy Scraper is also available as a library for Rust projects. It provides a set of modules and functions for scraping proxy information programmatically.
// Example usage of the Proxy Scraper library
use proxy_scraper::*;
fn main() {
let source = "<TEXT INCLUDING PROXY LINKS>";
let proxy_list = mtproxy::MTProxy::scrape(source);
println!("{:#?}", proxy_list);
}
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
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")../target/release/proxy-scraper --source https://example.com/proxies --proxy_type mtproxy
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").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
If you find my works helpful and would like to support me, consider making a donation. Your contributions will help ensure the ongoing maintenance and improvement of these projects.
This project is licensed under the MIT License - see the LICENSE file for details.