Skip to content

HowToNameMe/codexTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bilibili Hottest Today

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.

Requirements

  • Python 3.8+
  • pip install requests
  • Internet connection when running the script

Getting Started

  1. Install dependencies: pip install requests
  2. 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
  3. (Optional) Save JSON details: python bilibili_hottest_today.py --json hottest.json

Output

  • Title, author, and URL of the hottest video today
  • Human-readable stats for views, likes, coins, favorites, and shares
  • When --json is specified, writes full video details to the given file

Troubleshooting

  • 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

About

codexTest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages