[+] Python package
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user