pscrape
quickly generate a list of free and working proxies
Installation
python3 -m pip install pscrape
Usage
>>> from pscrape import Proxies
>>>
>>> proxies = Proxies(country='US', anon='elite', https=True).scrape()
>>> proxies
['20.241.236.196:3128' '204.2.218.145:8080', '104.223.135.178:10000', '5.78.50.231:8888', '4.16.68.158:443' '104.148.86.58:3129']
Proxies class parameters:
- country (None | str, optional): Country ISO Code. Defaults to None.
- anon (None | str, optional): Anonymity level. Defaults to None. anonymous, elite, or transparent.
- https (bool, optional): Https only. Defaults to False.
- debug (bool, optional): Display scraped and validated proxies. Defaults to False.
CLI
usage: pscrape [-h] [-c COUNTRY] [-a {anonymous,elite,transparent}] [--https]
[-o OUTPUT_FILE]
optional arguments:
-h, --help show this help message and exit
-c COUNTRY, --country COUNTRY
Country ISO Code
-a {anonymous,elite,transparent}, --anon {anonymous,elite,transparent}
Anonymity level
--https Https only
-o OUTPUT_FILE, --output_file OUTPUT_FILE
Save list of proxies to file.
Example:
$ pscrape -c US --https -o /tmp/proxies.txt
+ Total scraped proxies: 12
> 20.241.236.196:3128 | US | anonymous | https
> 204.2.218.145:8080 | US | elite proxy | https
> 104.223.135.178:10000 | US | elite proxy | https
> 5.78.50.231:8888 | US | elite proxy | https
> 4.16.68.158:443 | US | elite proxy | https
> 104.148.86.58:3129 | US | elite proxy | https
+ Total validated proxies: 6
+ Saved proxy list to: /tmp/proxies.txt
$ cat /tmp/proxies.txt
20.241.236.196:3128
204.2.218.145:8080
104.223.135.178:10000
5.78.50.231:8888
4.16.68.158:443
104.148.86.58:3129
Metadata
Release files for pscrape 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pscrape-0.0.3.tar.gz | 4.3 kB | Without provenance | Details for pscrape-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pscrape-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pscrape-0.0.3-py3-none-any.whl |
Total release size: 9.0 kB
Release files / pscrape-0.0.3.tar.gz
| Download URL | pscrape-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb26f25719e9b6e942913154d225181e92ddb0462fff4d36f80582e9639f175f
|
|
BLAKE2b-256 checksum How to use checksums |
d5dc0618e574f3e16b4b3257815744074f833085dab29e7bcc0722636b66f9c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / pscrape-0.0.3-py3-none-any.whl
| Download URL | pscrape-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65c446fcbcf48bb86cf00a3baa49c4bc89fe52402ae813539fd818f0a069d26b
|
|
BLAKE2b-256 checksum How to use checksums |
2ccd8defa67f479ebb723d3031d7d24ecdd48c17357d881dc44b4090827f5298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for pscrape 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.