DarkPatternLLM is a project aimed at detecting and combating dark patterns on websites using advanced Language Models (LLMs). This guide provides step-by-step instructions on how to install and run the project.
To install DarkPatternLLM, follow these steps:
-
Clone the repository:
git clone https://github.com/Venkateeshh/DarkPatternLLM.git
-
Navigate to the project directory:
cd DarkPatternLLM
-
Change directory to the "api" folder:
cd api
-
Install Python dependencies:
pip install -r requirements.txt
After completing the installation, follow these steps to run DarkPatternLLM:
-
Ensure you are still in the "api" folder:
cd api
-
Run the Python script:
python app.py
-
Open Google Chrome and go to chrome://extensions/.
-
Enable "Developer mode" at the top-right corner.
-
Click on "Load unpacked" and select the "app" folder in your DarkPatternLLM project directory.
-
The DarkPatternLLM extension icon should appear in your browser toolbar. Click on it to activate the extension.
-
Visit any website, and the extension will automatically analyze the page for dark patterns. If a dark pattern is detected, you will receive a notification, and the relevant elements will be highlighted on the page.
We welcome contributions! If you want to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.