This guide will help you set up and run FlashVideoBot quickly. For more detailed instructions, please refer to the full documentation.
- Python 3.9 or higher
- FFmpeg installed and in your PATH
- Git (for cloning the repository)
-
Clone the repository:
git clone https://github.com/yourusername/FlashVideoBot.git cd FlashVideoBot -
Install dependencies:
Windows:
.\setup_windows.ps1
Unix/macOS:
./setup_unix.sh
Or manually with pip:
pip install -r requirements.txt
-
Copy the example configuration file:
cp config/config.example.yaml config/config_local.yaml
-
Edit
config/config_local.yamland add your API keys:- NewsAPI key
- Unsplash API key
- Pixabay API key
- Other optional APIs as needed
-
See the API Setup Guide for instructions on how to obtain these API keys.
Run the main script to generate videos:
python main.pyThis will:
- Fetch news articles from configured sources
- Generate video content for each article
- Save videos to the
videos/directory
# Generate videos from a specific number of articles
python main.py --articles 3
# Use a specific configuration file
python main.py --config config/my_custom_config.yaml
# Test your API configurations
python test_apis.py
# Generate a simple test video
python quickstart.pyAfter running the application, check the videos/ directory for the generated videos. The filename format is configurable in your config file.
If you encounter any issues:
- Check the logs in
logs/flashvideobot.log - Make sure all API keys are correctly entered
- Verify that FFmpeg is properly installed
- Check the main README.md for troubleshooting tips
- Customize your video format in the configuration file
- Add more RSS feeds to increase news sources
- Explore advanced options in the Configuration Options guide
For detailed information and advanced usage, please refer to the full documentation.