dojinvoice-db-0.7.0
توضیحات
Make DB of Dojinvoice
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dojinvoice-db-0.7.0 |
| نام | dojinvoice-db |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | eggplants |
| ایمیل نویسنده | w10776e8w@yahoo.co.jp |
| آدرس صفحه اصلی | https://github.com/eggplants/dojinvoice_db |
| آدرس اینترنتی | https://pypi.org/project/dojinvoice-db/ |
| مجوز | MIT |
# dojinvoice_db
[](https://github.com/eggplants/dojinvoice_db/actions/runs/355419760) [](https://results.pre-commit.ci/latest/github/eggplants/dojinvoice_db/main) [](https://github.com/eggplants/dojinvoice_db/actions/workflows/update.yml)
[](https://badge.fury.io/py/dojinvoice_db) [](https://codeclimate.com/github/eggplants/dojinvoice_db/maintainability) [](LICENSE)
- 同人音声 DB
- DLsite
- <https://www.dlsite.com/maniax/works/voice>
## 動かす
```bash
pip install dojinvoice-db
```
```shellsession
$ dvdb
Download pages? >> (`y` or Enter)
<int> ids was committed to existed db!
Now: ./dlsite/00001.html
Now: ./dlsite/00002.html
Now: ./dlsite/00003.html
...
```
注意: _DB を一から構築するとかなり時間がかかります. 構築済DBは[Releases](https://github.com/eggplants/dojinvoice_db/releases)から_
## スキーマ
```python
create_table(
'''work (
work_id text primary key,
detail_link text not null,
title text not null,
circle text not null,
circle_link text not null,
category text not null,
sale_date integer not null,
age_zone text not null,
file_format text not null,
file_size text not null,
description str not null,
monopoly integer not null,
price integer not null
) '''
)
create_table(
'''option (
work_id text primary key,
thumbnail text,
cien_link text,
series text,
chobit_link text,
sales integer,
favorites integer,
trial_link text,
trial_size integer,
rating real
) '''
)
create_table(
'''writer (
work_id text,
writer text,
primary key (work_id, writer)
) '''
)
create_table(
'''scenario (
work_id text,
scenario text,
primary key (work_id, scenario)
) '''
)
create_table(
'''illustrator (
work_id text,
illustrator text,
primary key (work_id, illustrator)
) '''
)
create_table(
'''voice (
work_id text,
voice text,
primary key (work_id, voice)
) '''
)
create_table(
'''musician (
work_id text,
musician text,
primary key (work_id, musician)
) '''
)
create_table(
'''genre (
work_id text,
genre text,
primary key (work_id, genre)
) '''
)
```
نیازمندی
| مقدار | نام |
|---|---|
| ==4.11.1 | beautifulsoup4 |
| ==10.0 | humanfriendly |
| ==4.9.1 | lxml |
| ==3.3.0 | pyderman |
| ==2.28.1 | requests |
| ==4.3.0 | selenium |
| ==4.11.3 | types-beautifulsoup4 |
| ==10.0.1 | types-humanfriendly |
| ==2.28.1 | types-requests |
| - | black |
| - | flake8 |
| - | mypy |
| - | pre-commit |
| >=46.4.0 | setuptools |
| - | types-setuptools |
| - | wheel |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl dojinvoice-db-0.7.0:
pip install dojinvoice-db-0.7.0.whl
نصب پکیج tar.gz dojinvoice-db-0.7.0:
pip install dojinvoice-db-0.7.0.tar.gz