Metadata-Version: 2.4
Name: bilibili-search-cli
Version: 1.0.0
Summary: A command-line tool to search videos on Bilibili
Home-page: https://github.com/yourusername/bilibili-search-cli
Author: Your Name
Author-email: your.email@example.com
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Requires-Dist: fake-useragent>=0.1.11
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Bilibili Search CLI

A command-line tool to search videos on Bilibili and output results in JSON format.

## Features

- Search videos on Bilibili from command line
- Output results in structured JSON format
- Customizable number of results
- Anti-crawler protection built-in

## Installation

```bash
pip install bilibili-search-cli
```

## Usage

Basic search:
```bash
bilibili-search "happy new year"
```

Limit number of results:
```bash
bilibili-search "dance" -n 5
```

Search with spaces in keyword:
```bash
bilibili-search "music video" -n 10
```

Get help:
```bash
bilibili-search --help
```

## Output Format

The tool outputs JSON-formatted data:

```json
{
  "keyword": "happy new year",
  "total_count": 5,
  "videos": [
    {
      "title": "Happy New Year 2025",
      "author": "username",
      "bvid": "BV1X3XbYkEYZ",
      "play_count": 341,
      "duration": "45:22",
      "pubdate": "2025-03-23 11:34:40",
      "url": "https://www.bilibili.com/video/BV1X3XbYkEYZ"
    }
    // ... more videos
  ]
}
```

## Requirements

- Python 3.6 or higher
- requests
- fake-useragent

## License

MIT License 
