A Selenium bot that navigates to truthsocial.com and attempts to log in.
- Create a
.envfile in the project root with your credentials:
TRUTH_SOCIAL_USERNAME=your_username_here
TRUTH_SOCIAL_PASSWORD=your_password_here- Install Python dependencies:
pip install -r requirements.txt --user
- Make sure you have Microsoft Edge installed on your machine.
Run the Edge version with:
python edge_scrapper.py
- Navigates to truthsocial.com
- Attempts to log in using credentials from the
.envfile - Maximizes the browser window
- Includes basic page scraping functionality (currently commented out after login)
- Uncomment the headless option in
setup_driver()to run without a visible browser - Modify the
login_to_truth_socialfunction for different login flows - Uncomment or add scraping logic after successful login in the
mainfunction
- Ensure your credentials in the
.envfile are correct. - Make sure your browser is up to date.
- Check that you have the latest Python dependencies installed.
- Try running in non-headless mode first.
- Login flows on websites can change; the XPaths used might need updating if the site structure changes.