The project consists on three components:
- Chrome extension: Extension that categorizes cookies of the current opened and active tab and allows the user to block them. Optionally, if the webdriver is configured, it will perform GDPR compliance checks on a website's cookies banner.
- Selenium WebDriver server: Is used by the Chrome extension for performing the GDPR compliance check.
- Web crawler: Used to compute the GDPR compliance check offline and/or in bulk.
- Built with React and Next.js.
- Located in 'chrome_extension' directory.
- Requisites: Node.js.
-
Clone the repository or download the source code an extract it to a folder of your choice.
-
Install the dependencies (inside of 'chrome_extension'):
npm install
IMPORTANT NOTE
The Chrome API used by the extension is not available when developing locally.
To test the extension, you must build it and install it in Chrome.
- Start the development server:
npm run dev
- Open http://localhost:3000 with your browser.
- If running, stop the development server.
- Build the project:
npm run build
- Go to the Chrome extensions page URL (
chrome://extensions/
). - Enable the "Developer mode" toggle (it is located in the top-right corner of the page).
- Click the "Load unpacked" button (it is located in the top-left corner of the page).
- Navigate to the project directory and select the 'out' folder.
- The extension should now be installed and ready to use.
- Built with Flask.
- Located in 'selenium_webdriver_server' directory.
- Requisites: Docker.
- Clone the repository or download the source code an extract it to a folder of your choice.
- Build the Docker image (inside of 'selenium_webdriver_server')
docker build . -t tma2023-cool-cookie-tool
- Run the container:
docker run -d --name tma2023-cct -p 5000:5000 tma2023-cool-cookie-tool
- Requisites: Python 3.11.
- Clone the repository or download the source code an extract it to a folder of your choice.
- Create virtual env (inside of 'selenium_webdriver_server'):
python3 -m venv env
- Install requirements.
env/bin/python3 -m pip install -r requirements.txt
- Start the server:
env/bin/python3 app.py
- Built in Python.
- Located in 'selenium_webdriver_server' directory, file 'gdpr_compliance_checker.py' (sample input file is 'ranked_domains.csv').
- Requisites: Docker.
- Clone the repository or download the source code an extract it to a folder of your choice.
- Build the Docker image (inside of 'selenium_webdriver_server')
docker build . -t tma2023-cool-cookie-tool
- Run the container:
docker run -d --name tma2023-cct -p 5000:5000 tma2023-cool-cookie-tool bash
- Execute:
python gdpr_compliance_checker.py
- Requisites: Python 3.11.
- Clone the repository or download the source code an extract it to a folder of your choice.
- Create virtual env (inside of 'selenium_webdriver_server'):
python3 -m venv env
- Install requirements.
env/bin/python3 -m pip install -r requirements.txt
- Execute:
env/bin/python3 gdpr_compliance_checker.py