Skip to main content

privacyscanner

Installation

privacyscanner needs a Python 3 runtime. Depending on your environment you may also need the Python 3 header files in order to instal privacyscanner. For instance, on Debian and Ubuntu Linux you should be able to obtain all necessary files by executing:

sudo apt-get install python3 python3-pip python3-dev

privacyscanner is distributed via PyPI and can be easily installed using pip:

python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install privacyscanner

Before first use, you have to download the dependencies of privacyscanner. These include the MaxMind GeoIP2 database and the Easylist adblock lists. For convenience, most dependencies can be downloaded with:

privacyscanner update_dependencies

Those dependencies will be stored in ~/.local/share/privacyscanner. In addition, google-chrome or chromium have to be installed and available in your PATH. For Debian-based systems this can be done with:

apt install chromium

Note: Due to changes in the licensing, GeoIP database of MaxMind cannot be downloaded without license key anymore. You therefore have to register an account at maxmind.com and enter your license key to your privacyscanner configuration file at ~/.config/privacyscanner/config.py as follows:

SCAN_MODULE_OPTIONS = {
    'dns': {
        'geoip_license_key': 'YOUR-LICENSE-KEY'
    }
}

For more information about the new licensing of the GeoIP database see: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

Usage

Scanning a single website, e.g. http://example.com/, can be done by running:

privacyscanner scan http://example.com/

It will output the scan result in Python object syntax and it will create a directory for the website in your current working directory. This directory contains the scan result as JSON file as well as associated files (e.g. the screenshot of the site) and the corresponding log files of the scan.

For more details, see privacyscanner --help and dive into the source :-)

Development

Check out repository, change directory into repository root. Then install with:

pip install --editable .

Unfortunately, there is no development documentation currently. You have to consult the source code.

Metadata

Release files for privacyscanner 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privacyscanner 0.8.1
File Size Uploaded
privacyscanner-0.8.1.tar.gz 57.3 kB Details

Release files / privacyscanner-0.8.1.tar.gz

Download URL privacyscanner-0.8.1.tar.gz
Size 57.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b0a8b13538ecad18459eecbe4d912f8eac66f65bc265ba90880bac1a83b94aeb
BLAKE2b-256 checksum
How to use checksums
a8dcb04880be1eedaf57bf7d016de7250e5274bd25816b152913c634039d2b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.8.1 This release

1 release file

0.8.0

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page