Credits to @munishkhatri720 for the original youtube_player_scripts
This project automatically fetches and extracts YouTube player scripts using TypeScript and Bun.
- Automatically fetches the latest YouTube player script
- Extracts necessary functions and variables
- Runs on a schedule using GitHub Actions
- Can be triggered manually
- Bun (latest version)
- Clone the repository:
git clone https://github.com/she514552/player-script.git
cd player-script- Install dependencies:
bun installRun the script locally:
bun run src/index.tsThe script runs automatically every 6 hours using GitHub Actions. You can also trigger it manually from the Actions tab in your GitHub repository.
src/index.ts- Main script file.github/workflows/action.yml- GitHub Actions workflow configurationpackage.json- Project dependencies and scriptstsconfig.json- TypeScript configuration