A Rust library with Python bindings for Youtube stats
pip install youtube_statsgit clone [email protected]:beatgig/youtube_stats.git
cd youtube_statsCreate a .env file in the root of the project with the following contents:
YOUTUBE_API_KEY=YOUR_API_KEYpoetry run maturin developpytest -s test/from youtube_stats import YoutubeStats
stats = YoutubeStats()
stats.get_stats("https://www.youtube.com/watch?v=dQw4w9WgXcQ")use youtube_stats::YoutubeStats;
let stats = YoutubeStats::new();
stats.get_stats("https://www.youtube.com/watch?v=dQw4w9WgXcQ");Any push to main will trigger a GitHub Actions workflow that will build and publish the Python package to PyPI.
MIT