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.2.tar.gz (10.0 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.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: javdb-0.1.2.tar.gz
  • Upload date:
  • Size: 10.0 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.2.tar.gz
Algorithm Hash digest
SHA256 527513f29d74515e534ba3417f3f2f863fb8ebc6165d89e3d6f498d7d9f9e916
MD5 e457e9ddee5e3c9c42898a0566b15235
BLAKE2b-256 397c1f5e818fdc5547161e06fa55fcbb23571569bb0cffb60031c0cdac75446e

See more details on using hashes here.

Provenance

The following attestation bundles were made for javdb-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: javdb-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23e0609376032f5af4af83f31a56c3c8982ce64828238ee0bd01d0c56f67f2f6
MD5 f80e73ba3cc0f97471cc3ecfb05a8aa8
BLAKE2b-256 62bd66dece7e78ad8868bd8025d177e249b78bac270c527b8c997798e6f22d4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for javdb-0.1.2-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