TruthTracker is an innovative tool that verifies the truthfulness of statements by scraping Google for related articles. It uses the Google Gemini API to compare these articles and determine if the entered statement is true or false. This project consists of a dummy frontend, a backend
- frontend: Contains the code for a simple input box to accept input/query from user.
- backend: Contains the server-side logic to store the input and the information from articles related to the query.
To run this project locally, follow these steps:
Before running the project, make sure you have the following installed:
- Node.js (https://nodejs.org/)
- npm (Node Package Manger, comes with Node.js)
-
Clone the repository:
git clone https://github.com/your-username/truthtracker.git cd truthtracker
-
Install dependencies:
cd frontend npm install
cd backend npm install pip install googlesearch-python beautifulsoup4 requests
-
Run the application: In the frontend folder run
npm run dev
In the backend folder run
node index.js
- Enter a statement you want to verify.
- TruthTracker scrapes Google for related articles.
- The Google Gemini API compares these articles.
- The tool provides a verdict on whether the statement is true or false.
- Automated Scraping: Efficiently gathers articles from Google.
- Advanced Comparison: Uses the Google Gemini API for accurate analysis.
- User-Friendly Interface: Easy to use, even for those with minimal technical knowledge.
This project is developed using Python and involves web scraping and API integration for effective data validation.
Contributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements.