2022-02-13 00:33:49 +03:00
# proxy-scraper-checker

HTTP, SOCKS4, SOCKS5 proxies scraper and checker.
- Asynchronous.
2023-01-15 13:05:16 +03:00
- Uses regex to search for proxies (ip:port format) on a web page, allowing proxies to be extracted even from json without making changes to the code.
- It is possible to specify the URL to which to send a request to check the proxy.
- Can sort proxies by speed.
2022-02-13 00:33:49 +03:00
- Supports determining the geolocation of the proxy exit node.
2023-01-15 13:05:16 +03:00
- Can determine if the proxy is anonymous.
2022-02-13 00:33:49 +03:00
2022-04-08 12:00:43 +03:00
You can get proxies obtained using this script in [monosans/proxy-list ](https://github.com/monosans/proxy-list ).
2022-10-16 15:52:23 +03:00
## Installation and usage
2022-02-13 00:33:49 +03:00
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 ).
2022-04-13 18:24:56 +03:00
- Edit `config.ini` according to your preference.
2023-02-21 21:22:47 +03:00
- Install [Python ](https://python.org/downloads ) (minimum supported version is 3.7). During installation, be sure to check the box `Add Python to PATH` .
2022-10-16 15:52:23 +03:00
- Install dependencies and run the script. There are 2 ways to do this:
2023-03-17 23:55:48 +03:00
2022-10-16 15:52:23 +03:00
- Automatic:
- On Windows run `start.cmd`
- On Unix-like OS run `start.sh`
- Manual:
2023-03-17 23:55:48 +03:00
<details>
2023-03-18 00:01:00 +03:00
<summary>Windows (click to expand)</summary>
2023-03-17 23:55:48 +03:00
1. `cd` into the unpacked folder
1. Install dependencies with the command:
```bash
py -m pip install -U --no-cache-dir --disable-pip-version-check pip setuptools wheel; py -m pip install -U --no-cache-dir --disable-pip-version-check -r requirements.txt
` ``
1. Run with the command:
` ``bash
py -m proxy_scraper_checker
` ``
</details>
<details>
2023-03-18 00:01:00 +03:00
<summary>Unix-like OS (click to expand)</summary>
2023-03-17 23:55:48 +03:00
2022-10-16 15:52:23 +03:00
1. ` cd` into the unpacked folder
2023-03-17 23:55:48 +03:00
1. Install dependencies with the command:
` ``bash
python3 -m pip install -U --no-cache-dir --disable-pip-version-check pip setuptools wheel && python3 -m pip install -U --no-cache-dir --disable-pip-version-check -r requirements.txt
` ``
1. Run with the command:
` ``bash
python3 -m proxy_scraper_checker
` ``
</details>
2022-02-13 00:33:49 +03:00
## Folders description
When the script finishes running, the following folders will be created (this behavior can be changed in the config):
- ` proxies` - proxies with any anonymity level.
- ` proxies_anonymous` - anonymous proxies.
2022-04-08 12:00:43 +03:00
- ` proxies_geolocation` - same as ` proxies`, but includes exit-node's geolocation.
- ` proxies_geolocation_anonymous` - same as ` proxies_anonymous`, but includes exit-node's geolocation.
2022-02-13 00:33:49 +03:00
2022-04-08 11:05:57 +03:00
Geolocation format is ` ip:port|Country|Region|City`.
2022-02-13 00:33:49 +03:00
## Buy me a coffee
2022-10-16 15:52:23 +03:00
Ask for details on [Telegram ](https://t.me/monosans ) or [VK ](https://vk.com/id607137534 ).
2022-02-13 00:33:49 +03:00
## License
[MIT ](LICENSE )