Python utility that fetches the hottest Bilibili video for today using public web APIs. The script prefers the daily ranking endpoint and falls back to the popular feed when needed, providing a concise summary and optional JSON output.
- Python 3.8+
- pip install requests
- Internet connection when running the script
- Install dependencies: pip install requests
- Run the script:
- Auto-select data source: python bilibili_hottest_today.py
- Force daily ranking: python bilibili_hottest_today.py --source ranking
- Use popular feed: python bilibili_hottest_today.py --source popular
 
- Auto-select data source: 
- (Optional) Save JSON details: python bilibili_hottest_today.py --json hottest.json
- Title, author, and URL of the hottest video today
- Human-readable stats for views, likes, coins, favorites, and shares
- When --jsonis specified, writes full video details to the given file
- If you see "Error: The 'requests' package is required", install it with pip install requests
- Network errors typically indicate connectivity issues or API downtime; re-run after verifying your connection