Skip to main content

Command-line scraper for javdatabase.com. Search movies, extract metadata, and download preview images or NFO files for media centers.

Project description

javdb-python

Command-line scraper for javdatabase.com. Search movies, extract metadata, and download preview images or NFO files for media centers.

Installation

pip install javdb

Usage

Basic Search

Search for a movie by ID or title and interactively select from results:

javdb
javdb --query SONE-763

Search with NFO Output

Search and save metadata to a Kodi-compatible NFO file:

javdb --query SONE-763 --output SONE-763.nfo

Search with JSON Output

Search and save metadata as JSON:

javdb --query SONE-763 --json --output metadata.json

Direct Link

Skip the search and go directly to a movie page:

javdb --link https://www.javdatabase.com/movies/sone-763/

Direct Link with Download

Download preview images directly from a movie URL:

javdb --link https://www.javdatabase.com/movies/sone-763/ --download

All Options Combined

Search, save metadata, and download images:

javdb --query SONE-763 --output SONE-763.nfo --download

Options

  • --query, -q: Search query (e.g., video ID or title)
  • --link, -l: Direct URL to movie page (skips search)
  • --output, -o: Output file path (NFO/XML by default, or JSON when --json is used)
  • --download, -d: Download poster and preview images to dvd_id/preview/ and write NFO there
  • --json: Output metadata as JSON instead of NFO/XML

Extracted Metadata

The tool scrapes javdatabase.com and writes a Kodi-style movie.nfo XML with:

  • Title
  • Series (when available)
  • DVD ID and Content ID
  • Release Date and Runtime
  • Studio and Director
  • Genres and Actresses/Idols
  • Optional poster and fanart references when --download is used

When --json is used, the same metadata is returned as a JSON object with keys such as title, jav_series, dvd_id, content_id, release_date, runtime, studio, director, genres, actresses, preview_images, and poster.

Programmatic Use (experimental)

You can also call the scraping helpers from Python code:

from javdb.__main__ import fetch_movie_metadata, fetch_preview_images, fetch_poster_url

url = "https://www.javdatabase.com/movies/sone-763/"
meta = fetch_movie_metadata(url)
previews = fetch_preview_images(url)
poster = fetch_poster_url(url)

The functions and HTML structure are not considered a stable API, but this can be handy for quick scripts.

License

MIT License

See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

javdb-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

javdb-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file javdb-0.1.1.tar.gz.

File metadata

  • Download URL: javdb-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for javdb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cb2b23dc41e79b0b83e162ec6ee0d03cecbc61861b21e4376feceea4eccf0728
MD5 be501dd34d38e28567abeb064d5710ed
BLAKE2b-256 e31bbb27a5514adfc7fe7182d75250d1cd273d92ede7d04c283c2b3acf051925

See more details on using hashes here.

Provenance

The following attestation bundles were made for javdb-0.1.1.tar.gz:

Publisher: publish.yml on phoenixthrush/javdb-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file javdb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: javdb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for javdb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93a6ca1efd7ca6f710d384f079d5c86e6d85b2c6e3f14a6e6dd6511fbd1af5e0
MD5 f2df48241640b77a7184d10304ca5820
BLAKE2b-256 0f4a485a58303cc66394f04a3463bc256b4398063eb1f97bf21df6dc9165f113

See more details on using hashes here.

Provenance

The following attestation bundles were made for javdb-0.1.1-py3-none-any.whl:

Publisher: publish.yml on phoenixthrush/javdb-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page