begoneads将一些流行的主机文件列表作为adblocker度量值放入主机文件中。
begoneads的Python项目详细描述
开始广告
begoneads是一个脚本,它将一些流行的主机文件列表作为adblocker度量值放入系统主机文件中。
看到它在治疗腹水:
要求
- python 3.6或更高版本
开始
克隆此存储库:
git clone https://github.com/anned20/begoneads.git
安装程序:
python setup.py install
您现在可以使用begoneads:
begoneads
您应该看到如下内容:
Usage: begoneads [OPTIONS] COMMAND [ARGS]...
Install or uninstall BeGoneAds, the host blocker for the system hosts
file
Options:
--help Show this message and exit.
Commands:
install Install or update BeGoneAds
uninstall Uninstall BeGoneAds
用法
将主机安装到系统主机文件:
begoneads install
要使用自定义源将主机安装到系统主机文件中,请执行以下操作:
begoneads install --sources https://www.custom.sources/hosts,http://www.and-another.one/hosts
要使用本地源将主机安装到系统主机文件中,请执行以下操作:
begoneads install --local-sources path/to/hosts/file,other/path
选项sources
和local-sources
可以一起使用
将主机卸载到系统主机文件:
begoneads uninstall
此变体中统一的主机数据源
更新的hosts
来自以下位置的文件始终是统一的
包括:
Host file source | Home page |
---|---|
Steven Black's ad-hoc list | link |
Malware Domain List | link |
add.Dead | link |
add.Spam | link |
Dan Pollock | link |
MVPS hosts file | link |
yoyo.org | link |
Mitchell Krog's - Badd Boyz Hosts | link |
CoinBlocker | link |
UncheckyAds | link |
add.2o7Net | link |
KADhosts | link |
AdAway | link |
add.Risk | link |
1.0.0的待办事项
- [X]Windows支持
- [X]自定义主机文件选择
- [X]设置工具
- [X]应用自己的主机
- []系统集成
- []为Debian、Arch、Centos、Fedora等打包。
测试
要运行测试,请使用pytest
在项目目录中用pytest
执行它们
使用
构建许可证
这个项目是根据麻省理工学院的许可证授权的-请参见LICENSE.md文件以了解详细信息