This repo includes automated workflows that scan trends and post to Twitter.
Every 3 hours, the system:
- Scans TikTok, Twitter, Reddit, StockX, Runway, and Super Bowl ads
- Analyzes cross-platform correlations
- Generates data-driven posts
- Auto-posts 3 tweets to @tasteengine
- Commits updated data back to the repo
Go to your repo settings: Settings → Secrets and variables → Actions
Add these secrets:
TWITTER_AUTH_TOKEN
<your-twitter-auth-token>
TWITTER_CT0
<your-twitter-ct0-token>
(Get these from your browser cookies after logging into Twitter)
- Go to
Settings → Actions → General - Under "Workflow permissions" select "Read and write permissions"
- Check "Allow GitHub Actions to create and approve pull requests"
- Save
- Go to
Actionstab in your repo - Enable GitHub Actions if prompted
- You'll see two workflows:
- Automated Trend Scanning & Posting (runs every 3 hours)
- Manual Post to Twitter (run on demand)
Manual test:
- Go to
Actionstab - Select "Automated Trend Scanning & Posting"
- Click "Run workflow" → "Run workflow"
- Watch it run (takes ~2 minutes)
Check the output:
- Check Twitter (@tasteengine) for new posts
- Check
Actionstab for logs - Check repo for new data commits
The automation runs:
- Every 3 hours: Full scan + 3 posts
- Times: 12am, 3am, 6am, 9am, 12pm, 3pm, 6pm, 9pm UTC
To change the schedule, edit .github/workflows/auto-trend-scan.yml:
schedule:
- cron: '0 */3 * * *' # Every 3 hours
# Or:
- cron: '0 9,15,21 * * *' # 9am, 3pm, 9pm onlySecrets are encrypted by GitHub. They:
- Never appear in logs
- Can't be read by forks
- Are only accessible to workflow runs
To rotate credentials:
- Generate new Twitter cookies
- Update secrets in repo settings
- No code changes needed
Each run saves:
data/*_latest.json- Latest scan resultsoutput/posts.txt- Generated tweetsoutput/ultimate_analysis.json- Full analysis
Data is auto-committed back to the repo for history.
"Twitter API error 226"
- Account might be flagged for automation
- Wait 24-48 hours, manually post a few tweets
- Try again
"No posts generated"
- Check data files exist in
data/folder - Run scripts locally first to debug
"Permission denied on push"
- GitHub Actions needs write permissions
- Go to
Settings → Actions → General - Under "Workflow permissions" select "Read and write"
Change posting frequency:
Edit the cron schedule in auto-trend-scan.yml
Change number of posts:
Edit the "Post to Twitter" step - add/remove bird tweet calls
Change data sources: Comment out steps you don't want:
# - name: Scan Reddit sentiment
# run: python3 scripts/collect_reddit.pyAdd new data sources: Add a new step:
- name: Scan Instagram trends
run: python3 scripts/collect_instagram.pyGitHub Actions free tier:
- 2,000 minutes/month
- Each run takes ~2 minutes
- 8 runs/day × 30 days = 480 minutes/month
- Completely free ✅
When you hit limits:
- Reduce frequency (every 6 hours instead of 3)
- Split into separate workflows
- Use GitHub Actions paid plan ($4/month for 3,000 minutes)
- Move to your own server
Built with ❤️ by Taste Engine