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.
- 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.
Before running the project, ensure you have the following installed:
- Python 3.11
- Docker(if running in a Docker environment)
Follow the steps below to run the project locally or in a Docker environment.
- Clone the repository:
git https://github.com/UsmanT2000/Compliance-Tool.git cd Compliance-Tool
- 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
- Run the project:
./scripts/run.sh
- Build the docker image:
docker build -t compliancetool-news-fetcher .
- Run the container:
docker-compose run compliancetool-news-fetcher python3 main.py "{queried name}"