Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.38 KB

mitmproxy-adblock

ci documentation pypi version gitter

Ad blocker for mitmproxy using popular AdBlockPlus blocklists. Inspired by mitm-adblock. Created because pi-hole does not work for YouTube ads.

Requirements

mitmproxy-adblock requires Python 3.8 or above.

To install Python 3.8, I recommend using pyenv.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.8
pyenv install 3.8.6

# make it available globally
pyenv global system 3.8.6

Installation

With pip:

python3.8 -m pip install mitmproxy-adblock