Skip to content

he-owen/TruthScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TruthScraper

A Python project that uses Truthbrush to scrape Donald J. Trump posts from Truth Social and runs sentiment analysis using FinBERT to determine potential market impact.

Installation

  1. Clone the repository:
git clone https://github.com/he-owen/TruthScraper.git
cd TruthScraper
  1. Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # Linux/macOS
venv\Scripts\activate     # Windows
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root with your Truth Social credentials:
TRUTHSOCIAL_USERNAME=your_username
TRUTHSOCIAL_PASSWORD=your_password

Usage

Run the scraper and analyze sentiment:

python main.py <TRUTH_SOCIAL_URL> --max-posts 5

Example:

python main.py https://truthsocial.com/@realDonaldTrump --max-posts 2

Output

Found 2 new post(s):

[2025-11-07T00:02:10.748Z] (ID: 115505478418176575) | Sentiment: Bullish
I just held a great call between Prime Minister Benjamin Netanyahu...
--------------------------------------------------------------------------------
[2025-11-06T21:53:38.990Z] (ID: 115504973020459337) | Sentiment: Bullish
Joe Lombardo is the strong and very popular Governor of Nevada...
--------------------------------------------------------------------------------

About

A simple python project that uses truthbrush (https://github.com/stanfordio/truthbrush.git) to scrape DJT posts. Runs sentiment analysis using FinBERT on posts to determine market impact.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages