The code to build the website on https://www.ghostery.com/whotracksme is not public; but for local testing, you can still use the code for the previous version.
Python 3.11 is needed to build the site (Python 3.12 is currently not supported):
python3.11 -m venv venv
. venv/bin/activate
pip -r requirements-dev.txt
pip install -e '.[dev]'
If you have not done so, make sure that you have downloaded data (see Data Readme).
whotracksme website
It will generate static HTML files in the _site
directory. Plus, it will also create a JSON files
in the _site/api/
directory. Use them at your own risk, since the format is expected to change over
time. If there is interest to stabilize the API files, let us know. Currently, it is only used internally
within Ghostery to power the new website.
Hint: if you debug the website generator, the parallel execution can be disabled by setting the environment variable DEBUG=1.
To run the unit tests:
python3.11 -m venv venv
. venv/bin/activate
python -m pip install -e '.[dev]'
pytest