Ad blocker for mitmproxy using popular AdBlockPlus blocklists. Inspired by mitm-adblock. Created because pi-hole does not work for YouTube ads.
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
With pip
:
python3.8 -m pip install mitmproxy-adblock