Skip to content

Commit 70514e7

Browse files
committed
add v.0.1.0
1 parent 533fc13 commit 70514e7

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# javdb-python
22

3-
Python API wrapper for javdatabase.com. Search movies, extract metadata, and download preview images.
3+
Command-line scraper for javdatabase.com. Search movies, extract metadata, and
4+
download preview images or NFO files for media centers.
45

56
## Installation
67

78
```bash
8-
pip install .
9+
pip install javdb
910
```
1011

1112
## Usage
@@ -16,6 +17,9 @@ Search for a movie by ID or title and interactively select from results:
1617

1718
```bash
1819
javdb
20+
```
21+
22+
```bash
1923
javdb --query SONE-763
2024
```
2125

@@ -84,6 +88,22 @@ keys such as `title`, `jav_series`, `dvd_id`, `content_id`, `release_date`,
8488
`runtime`, `studio`, `director`, `genres`, `actresses`, `preview_images`,
8589
and `poster`.
8690

91+
## Programmatic Use (experimental)
92+
93+
You can also call the scraping helpers from Python code:
94+
95+
```python
96+
from javdb.__main__ import fetch_movie_metadata, fetch_preview_images, fetch_poster_url
97+
98+
url = "https://www.javdatabase.com/movies/sone-763/"
99+
meta = fetch_movie_metadata(url)
100+
previews = fetch_preview_images(url)
101+
poster = fetch_poster_url(url)
102+
```
103+
104+
The functions and HTML structure are not considered a stable API, but this can
105+
be handy for quick scripts.
106+
87107
## License
88108

89109
MIT License

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "javdb"
3-
version = "0.0.3"
3+
version = "0.1.0"
44
dependencies = [
55
"niquests",
66
]
@@ -11,7 +11,7 @@ authors = [
1111
maintainers = [
1212
{ name="Phoenixthrush UwU", email="contact@phoenixthrush.com" }
1313
]
14-
description = "Python API wrapper for javdatabase.com. Search movies, extract metadata, and download preview images."
14+
description = "Command-line scraper for javdatabase.com. Search movies, extract metadata, and download preview images or NFO files for media centers."
1515
readme = "README.md"
1616
license = "MIT"
1717
license-files = ["LICENSE"]

0 commit comments

Comments
 (0)