2022-02-13 00:33:49 +03:00
# proxy-scraper-checker
2023-05-11 13:52:44 +03:00
[](https://github.com/monosans/proxy-scraper-checker/actions/workflows/ci.yml)
2022-02-13 00:33:49 +03:00

HTTP, SOCKS4, SOCKS5 proxies scraper and checker.
2023-01-15 13:05:16 +03:00
- Can determine if the proxy is anonymous.
2024-01-21 17:45:01 +00:00
- Supports determining the geolocation of the proxy exit node.
- Can sort proxies by speed.
2024-08-26 08:54:44 +03:00
- Uses regex to find proxies of format `protocol://username:password@host:port` on a web page or in a local file, allowing proxies to be extracted even from json without code changes.
2024-01-21 17:45:01 +00:00
- Supports proxies with authentication.
- It is possible to specify the URL to which to send a request to check the proxy.
- Supports saving to plain text and json.
- Asynchronous.
2022-02-13 00:33:49 +03:00
2024-01-21 17:45:01 +00:00
You can get proxies obtained using this project in [monosans/proxy-list ](https://github.com/monosans/proxy-list ).
2022-04-08 12:00:43 +03:00
2022-10-16 15:52:23 +03:00
## Installation and usage
2022-02-13 00:33:49 +03:00
2024-02-01 07:24:26 +00:00
### Standalone executable
2024-01-21 17:45:01 +00:00
2024-05-08 14:05:57 +03:00
This is the easiest way, but it is only available for x86-64 Windows, x86-64/arm64 macOS and x86-64 Linux. Just download the archive for your OS from [nightly.link ](https://nightly.link/monosans/proxy-scraper-checker/workflows/ci/main?preview ), unzip it, edit `config.toml` and run the `proxy_scraper_checker` executable.
2024-01-21 17:45:01 +00:00
2024-05-08 15:05:34 +03:00
If Windows antivirus detects the executable file as a virus, please read [this ](https://github.com/Nuitka/Nuitka/issues/2495#issuecomment-1762836583 ).
2024-02-01 07:24:26 +00:00
### Docker
- [Install `Docker Compose` ](https://docs.docker.com/compose/install/ ).
- Download and unpack [the archive with the program ](https://github.com/monosans/proxy-scraper-checker/archive/refs/heads/main.zip ).
- Edit `config.toml` to your preference.
- Run the following commands:
```bash
docker compose build --pull
2024-11-12 10:02:55 +03:00
docker compose up --no-log-prefix --remove-orphans
2024-02-01 07:24:26 +00:00
` ``
2024-01-21 17:45:01 +00:00
### Running from source code
#### Desktop
2024-11-18 10:55:37 +03:00
- Install [Python](https://python.org/downloads). Supported versions are 3.9 to 3.12. The recommended version is 3.12.
2022-03-08 10:34:37 +03:00
- Download and unpack [the archive with the program](https://github.com/monosans/proxy-scraper-checker/archive/refs/heads/main.zip).
2024-01-21 17:45:01 +00:00
- Edit ` config.toml` to your preference.
2023-07-12 23:26:05 +03:00
- Run the script that installs dependencies and starts ` proxy-scraper-checker`:
- On Windows run ` start.cmd`
- On Unix-like operating systems run ` start.sh`
2024-01-21 17:45:01 +00:00
#### Termux
2023-07-12 23:26:05 +03:00
To use ` proxy-scraper-checker` in Termux, knowledge of the Unix command-line interface is required.
2024-07-20 23:44:18 +03:00
- Download Termux from [F-Droid](https://f-droid.org/en/packages/com.termux/). [Don't download it from Google Play](https://github.com/termux/termux-app#google-play-store-experimental-branch).
2023-07-12 23:26:05 +03:00
- Run the following command (it will automatically update Termux packages, install Python, and download and install ` proxy-scraper-checker`):
` ``bash
2023-07-12 23:29:40 +03:00
bash <(curl -fsSL 'https://raw.githubusercontent.com/monosans/proxy-scraper-checker/main/install-termux.sh')
2023-07-12 23:26:05 +03:00
` ``
2024-01-21 17:45:01 +00:00
- Edit ` ~/proxy-scraper-checker/config.toml` to your preference using a text editor (vim/nano).
2023-07-12 23:26:05 +03:00
- To run ` proxy-scraper-checker` use the following command:
` ``bash
2024-11-27 08:50:19 +03:00
cd ~/proxy-scraper-checker && sh start.sh
2023-07-12 23:26:05 +03:00
` ``
2022-02-13 00:33:49 +03:00
2024-01-21 17:45:01 +00:00
## Something else?
2023-12-09 15:36:27 +03:00
2024-01-21 17:45:01 +00:00
All other info is available in ` config.toml` file.
2022-02-13 00:33:49 +03:00
## License
[MIT ](LICENSE )
2024-01-21 17:45:01 +00:00
This product includes GeoLite2 Data created by MaxMind, available from <https://www.maxmind.com>.