Skip to main content

Useful tools for Jav.

Project description

Jvav

Useful tools for Jav. Supports Python library operations and command-line usage, with additional proxy options and cache support.

INSTALL

# python >= 3.7
pip install jvav -U

LIB

  • DmmUtil
  • JavDbUtil
  • JavLibUtil
  • JavBusUtil
  • AvgleUtil
  • MagnetUtil
  • SukebeiUtil
  • WikiUtil
  • TransUtil
  • SgpUtil
# A sample for DmmUtil
import jvav

util = jvav.DmmUtil()
util.get_nice_avs_by_star_name('小倉由菜')
util.get_score_by_id('cawd-441')
util.get_all_top_stars()

CMD

usage: cmd.py [-h] [-v] [-av1 AV1] [-av2 AV2] [-av3 AV3] [-sg SG] [-auth AUTH]
              [-nc] [-uc] [-sr SR] [-srn SRN] [-tg TG] [-pv1 PV1] [-pv2 PV2]
              [-tp] [-p PROXY]

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         Check version
  -av1 AV1              Followed by a code, search this code on JavBus
  -av2 AV2              Followed by a code, search this code on Sukebei
  -av3 AV3              Followed by a code, search this code on JavDb
  -sg SG                Followed by a code, search the explainer video of this
                        code
  -auth AUTH            Followed by a authentication code for JavBus, get it
                        from cookie key: bus_auth
  -nc                   Filter out high-definition subtitles magnet links
  -uc                   Filter out uncoded magnet links
  -sr SR                Followed by an actress name, get a list of high-rated
                        codes based on the actress name
  -srn SRN              Followed by an actress name, get a list of the most
                        recent codes based on the actress name
  -tg TG                Followed by a keyword, search for codes based on the
                        keyword
  -pv1 PV1              Followed by a code, get the corresponding preview
                        video of the code on DMM
  -pv2 PV2              Follow a code, get the corresponding preview video of
                        the code on Avgle
  -tp                   Get the top 25 ranking of DMM actresses
  -p PROXY, --proxy PROXY
                        Followed by a proxy server address (by default reads
                        the value of the environment variable http_proxy)

DEV

I use python-3.7.12 for development, please use python <= 3.7.

And it is recommended to use python virtual environment to avoid some unnecessary problems.

Here is my developing steps:

git clone https://github.com/akynazh/jvav.git
cd jvav
~/.pyenv/versions/3.7.12/bin/python -m venv venv
source ./venv/bin/activate
pip3 install -r requirements.txt

And then you can enjoy coding! Remember to write or run test cases in tests/test.py. Please make sure the test is okay before submitting your code~

TODO

The following are some functions to be implemented, and I look forward to your contribution~

  • fix SgpUtil(currently not work)
  • cache the successful query results locally (Thanks: @akynazh)
  • support javdb.com (Thanks: @Steven-Fake)
  • support db.msin.jp
  • support JavDbUtil in cmd (Thanks: @akynazh)

Thanks

JetBrains Logo (Main) logo.

Thanks to JetBrains for their support to this project!

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

Jvav-1.7.3.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

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

Jvav-1.7.3-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file Jvav-1.7.3.tar.gz.

File metadata

  • Download URL: Jvav-1.7.3.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Jvav-1.7.3.tar.gz
Algorithm Hash digest
SHA256 19f53a4e9153b1858d05911da52101254d69d5d22f94234291ebd6f663056f83
MD5 8b02385c9f0c9b8619544d71eb7361fe
BLAKE2b-256 bc39bbaa027c6ffc0a38c35fcf1fa98adedeea64cc834e1ede33224d70c37df1

See more details on using hashes here.

File details

Details for the file Jvav-1.7.3-py3-none-any.whl.

File metadata

  • Download URL: Jvav-1.7.3-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Jvav-1.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 718ec1c0e87e42f3a99954bfb9ebf0d03a3d12cfa98c46cd0c1e30dbac96389b
MD5 214e09056628113f7060bcbd241dc44d
BLAKE2b-256 a20d0e66044d117fea1a311b5b5ab30140eb2973de546c5f8f52c61cf33f9719

See more details on using hashes here.

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