[+] Python package

This commit is contained in:
2025-08-23 15:43:02 +09:00
parent 0eef675072
commit f4a0f330e0
7 changed files with 328 additions and 5 deletions
+24 -1
View File
@@ -2,7 +2,30 @@
Anime birthday dataset from https://bd.fan-web.jp
## [bdfan_with_hearts.json](bdfan/bdfan_with_hearts.json)
## Use as a Python Package
First install the package via pip:
```bash
pip install bdfan
```
Then, you can use it in your Python code as follows:
```python
import bdfan
# Load data for a specific day
month = 1
day = 1
print(bdfan.load_date(month, day))
# Or if you want to query in batch
bdata = bdfan.load_mapping()
print(bdata[month][day])
```
## Data Structure [bdfan_with_hearts.json](bdfan/bdfan_with_hearts.json)
This file contains the primary scraped data for every day of the year. It is a JSON array where each object represents a single day.