Skip to main content

Get and save images from jump web viewer

Project description

getjump

PyPI version Maintainability pre-commit.ci status Test Coverage Test

ghcr latest ghcr size

  • Retrieve and save images from manga distribution sites using GigaViewer

Note: Redistribution of downloaded image data is prohibited. Please keep it to private use.

Valid URL Formats

Available Hosts

  • https://www.corocoro.jp
  • https://comic-action.com
  • https://comic-days.com
  • https://comic-gardo.com
  • https://comic-ogyaaa.com
  • https://comic-trail.com
  • https://comic-zenon.com
  • https://comicborder.com
  • https://comicbushi-web.com
  • https://feelweb.jp
  • https://kuragebunch.com
  • https://magcomi.com
  • https://pocket.shonenmagazine.com
  • https://shonenjumpplus.com
  • https://tonarinoyj.jp
  • https://viewer.heros-web.com
  • https://www.sunday-webry.com

Install

pip install getjump

Library

Overview

from getjump import GetJump
g = GetJump()  # create session

g.get(
    url: str,
    save_path: str = ".",
    overwrite: bool = True,
    only_first: bool = False,
    username: str | None = None,
    password: str | None = None,
)
# >>> (next_uri: str | None, prev_title: str, saved: bool)

g.login(
    url: str,
    username: str | None = None,
    password: str | None = None,
    overwrite: bool = False,
)
# >>> logined_response: requests.Response | None

g.is_valid_uri(url: str)
# >>> is_valid_uri: bool

Download all series

To download all series at once:

from getjump import GetJump as g

G = g()
next_uri = "https://shonenjumpplus.com/episode/13932016480028799982.json"
while next_uri:
    next_uri, prev_title, saved = G.get(next_uri, overwrite=False)
    if saved:
        print("saved:", prev_title)
    print("next:", next_uri)

Login

To get purchaced or login required works:

from getjump import GetJump as g

G = g()
G.login("https://shonenjumpplus.com", username="***", password="***")
G.login("https://comic-days.com", username="***", password="***")
...
G.get(...)

CLI

Usage

$ jget https://shonenjumpplus.com/episode/13932016480028799982.json
get: https://shonenjumpplus.com/episode/13932016480028799982.json
saved: ./阿波連さんははかれない/[1話]阿波連さんははかれない
done.

$ jget -b https://shonenjumpplus.com/episode/10833519556325021912.json
get: https://shonenjumpplus.com/episode/10833519556325021912.json
saved: ./こちら葛飾区亀有公園前派出所/[第1話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/10833519556325022016.json
saved: ./こちら葛飾区亀有公園前派出所/[第2話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/10833519556325022128.json
saved: ./こちら葛飾区亀有公園前派出所/[第3話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/10833519556325022500.json
...
saved: ./こちら葛飾区亀有公園前派出所/[第1950話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/13932016480028744844.json
saved: ./こちら葛飾区亀有公園前派出所/[第1951話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/13932016480028744845.json
saved: ./こちら葛飾区亀有公園前派出所/[第1952話]こちら葛飾区亀有公園前派出所
next: https://shonenjumpplus.com/episode/13932016480028744846.json
saved: ./こちら葛飾区亀有公園前派出所/[第1953話]こちら葛飾区亀有公園前派出所
done.

Help

$ jget -h
usage: jget [-h] [-b] [-d DIR] [-f] [-o] [-m] [-u ID] [-p PW] [-V] url

Get images from jump web viewer

positional arguments:
  url                    target url

options:
  -h, --help             show this help message and exit
  -b, --bulk             download series in bulk (default: False)
  -d DIR, --savedir DIR  directory to save downloaded images (default: .)
  -f, --first            download only first page (default: False)
  -o, --overwrite        overwrite (default: False)
  -m, --metadata         save metadata as json (default: False)
  -u ID, --username ID   username if you want to login (default: None)
  -p PW, --password PW   password if you want to login (default: None)
  -V, --version          show program's version number and exit

available urls:
  - https://www.corocoro.jp
  - https://comic-action.com
  - https://comic-days.com
  - https://comic-gardo.com
  - https://comic-ogyaaa.com
  - https://comic-trail.com
  - https://comic-zenon.com
  - https://comicborder.com
  - https://comicbushi-web.com
  - https://feelweb.jp
  - https://kuragebunch.com
  - https://magcomi.com
  - https://pocket.shonenmagazine.com
  - https://shonenjumpplus.com
  - https://www.sunday-webry.com
  - https://tonarinoyj.jp
  - https://viewer.heros-web.com

Screenshot

image

License

MIT


Reference

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

getjump-2.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

getjump-2.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file getjump-2.0.1.tar.gz.

File metadata

  • Download URL: getjump-2.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for getjump-2.0.1.tar.gz
Algorithm Hash digest
SHA256 70b6818cb763d858c540bf1bdbe092acb3e54253ab724380b82117bc4570b3f3
MD5 3c6b763713684e09ccd90241f50f538c
BLAKE2b-256 c27ae4be191a9f3459c0ce9ef57909a9631706123d234b3a07453c932ff39405

See more details on using hashes here.

File details

Details for the file getjump-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: getjump-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for getjump-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3147397c8b5cac4643cdf22f24e5db14d2a5827df9083906efa0dea113b76263
MD5 064c187ca169f75cb1fca3c320207aa2
BLAKE2b-256 b5e166c9af18a9068a84dfe6d4deaaaaf99c0595beba3f1c53f223c166c26b00

See more details on using hashes here.

Supported by

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