Posts

Showing posts from August, 2025

USA Trending News

""" USA Trending News Script Generator Generates Google Veo2-friendly video scripts from US trending news. Features: - Fetches top headlines (NewsAPI.org) by country=us - Generates a short, punchy news script in a modern anchor tone - Outputs: plain .txt script, JSON with segments and timings, and optional SSML for TTS - Configurable: number of headlines, categories, verbosity Usage: 1) Install dependencies: pip install requests python-dotenv 2) Create a .env file with: NEWSAPI_KEY=your_api_key (You can use NewsAPI (https://newsapi.org/) or swap the fetch function to another provider) 3) Run: python usa_trending_script_generator.py --count 5 --length short Note: This script only *generates* text/scripts. It does not create videos. Use your Google Veo2 workflow to convert scripts to video. """ import os import requests import argparse import json from datetime import datetime from textwrap import dedent from dotenv import load_dotenv load_dotenv() ...