Skip to main content

convert gfwlist to privoxy action file

Project description

Build Status

Usage

Generate action file for privoxy from gfwlist, inspired by clowwindy’s gfwlist2pac and modified from it.

pip install gfwlist2privoxy

usage: main.py [-h] [-i GFWLIST] -f ACTION -p PROXY -t TYPE [--user-rule USER_RULE]

detail arguments:
  -h, --help                    show this help message and exit

  -i GFWLIST, --input GFWLIST   local path or remote url of gfwlist, ignore to use default address

  -f ACTION, --file ACTION      path to the output action file

  -p PROXY, --proxy PROXY       the proxy in the action file, for example, "127.0.0.1:1080"

  -t TYPE, --type TYPE          the proxy type in the action file, should be one of the followings,
                                "http socks4 socks4a socks5 socks5t"

  --user-rule USER_RULE         user rule file, which will be appended to gfwlist

Please set https proxy in your system if you ignore the argument GFWLIST.

Example Action File

An example of generated action file is here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py3-gfwlist2privoxy-1.0.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

py3_gfwlist2privoxy-1.0.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file py3-gfwlist2privoxy-1.0.0.tar.gz.

File metadata

  • Download URL: py3-gfwlist2privoxy-1.0.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for py3-gfwlist2privoxy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4bb549a69990ee0b91d9dd27d054030ff1b362bcda37c80dc981cb402139dfd2
MD5 a7736f2b06fae14c8c50b9697197597e
BLAKE2b-256 679b1745f12c8087ef32a597fd1eede3e582b39822398e7c4e34353a02520e31

See more details on using hashes here.

File details

Details for the file py3_gfwlist2privoxy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: py3_gfwlist2privoxy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for py3_gfwlist2privoxy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b53748e56628769d001ba06d246e6c1d74d5f4cbdc1f9f36e3387130590b9f0
MD5 f45bd926ada0d65df18bde55e465d040
BLAKE2b-256 378b14034209755b7f3bb0b678a2d3fa27582d55667776a7dc794f3837ac0c3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page