This project includes scripts to automate the promotion of PlayTune Studio (b4iborn.com) on X (formerly Twitter).
- Trend Discovery: Scrapes trends24.in for top trends in India.
- Content Matching: identifying if any trends are music-related.
- Automated Posting: Posts a promotional tweet if a match is fine.
-
Install Dependencies:
npm install
-
Run Locally (Dry Run):
export DRY_RUN=true npm run promote
The workflow .github/workflows/daily_promote.yml is configured to run twice daily.
Go to your GitHub Repository -> Settings -> Secrets and variables -> Actions -> New repository secret.
You must set ONE of the following sets of credentials:
TWITTER_API_KEYTWITTER_API_SECRETTWITTER_ACCESS_TOKENTWITTER_ACCESS_SECRET
X_USERNAMEX_PASSWORDX_EMAIL(Optional, for verification challenges)
You can also manually trigger the "Daily Music Promotion to X" workflow from the "Actions" tab in GitHub to test it immediately.