Skip to content

A Python-based compliance tool for monitoring negative news coverage of individuals with sentiment analysis.

License

Notifications You must be signed in to change notification settings

UsmanT2000/Compliance-Tool

Repository files navigation

Compliance Tool

Overview

The Compliance Tool is a comprehensive application designed to fetch news articles from various sources, analyze their sentiment, and assign connotations to the content. It also integrates with data scraped from Interpol's Red Notice to search for queried names, providing a robust solution for compliance and risk assessment.

Features

  • News Fetching: Retrieve articles from NewsAPI and Google Custom Search Engine.
  • Sentiment Analysis: Analyze the sentiment of fetched articles to understand the tone.
  • Connotation Assignment: Automatically classify articles based on their sentiment scores.
  • Interpol Red Notice Search: Search for queried names against data scrapped from Interpol’s Red Notice to identify potential compliance risks.

Requirements

Before running the project, ensure you have the following installed:

  • Python 3.11
  • Docker(if running in a Docker environment)

Getting Started

Follow the steps below to run the project locally or in a Docker environment.

Local Setup

  1. Clone the repository:
    git https://github.com/UsmanT2000/Compliance-Tool.git
    cd Compliance-Tool
  2. Set up environment variables: Ensure you have the necessary API keys for NewsAPI and Google Custom Search Engine set in your environment .env file content
NEWS_API_KEY=your_news_api_key
GOOGLE_CSE_API_KEY=your_google_cse_api_key
GOOGLE_CSE_ID=your_google_cse_id
  1. Run the project:
    ./scripts/run.sh

Docker Setup

  1. Build the docker image:
    docker build -t compliancetool-news-fetcher .
  2. Run the container:
    docker-compose run compliancetool-news-fetcher python3 main.py "{queried name}"

About

A Python-based compliance tool for monitoring negative news coverage of individuals with sentiment analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published