Giter Site home page Giter Site logo

gfwlist2pac's Introduction

gfwlist2pac

fork from clowwindy's gfwlist2pac

usage:

python main.py -i gfwlist.txt -f ss.pac -p "SOCKS5 192.168.1.17:1080;" --user-rule myrule --precise
pip install gfwlist2pac

   usage: gfwlist2pac [-h] [-i GFWLIST] -f PAC -p PROXY [--user-rule USER_RULE]
                  [--precise]

   optional arguments:
     -h, --help            show this help message and exit
     -i GFWLIST, --input GFWLIST
                           path to gfwlist
     -f PAC, --file PAC    path to output pac
     -p PROXY, --proxy PROXY
                           the proxy parameter in the pac file, for example,
                           "SOCKS5 127.0.0.1:1080;"
     --user-rule USER_RULE
                           user rule file, which will be appended to gfwlist
     --precise             use adblock plus algorithm instead of O(1) lookup

规则

http://codelife.me/blog/2013/04/06/convert-gfwlist-to-pac/

简单说明如下:

 通配符支持,如 *.example.com/* 实际书写时可省略* 如.example.com/ 意即*.example.com/* 
 正则表达式支持,以\开始和结束, 如 \[\w]+:\/\/example.com\
 例外规则 @@,如 @@*.example.com/* 满足@@后规则的地址不使用代理
 匹配地址开始和结尾 |,如 |http://example.com、example.com|分别表示以http://example.com开始和以example.com结束的地址
 || 标记,如 ||example.com 则http://example.com、https://example.com、ftp://example.com等地址均满足条件
 注释 ! 如 ! Comment

 更详细说明 请访问 http://adblockplus.org/en/filters

gfwlist2pac's People

Contributors

caorong avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.