Skip to main content

A simple manga extractor. Extracts any comic info, chapter list and chapter pages. In development.

Project description

MEXT - Manga/Manhua/Manhwa Extractor

A simple manga extractor. Extracts any comic info, chapter list and chapter pages. This is an app that strictly provides API.

Still in development.

This has been tested only on Windows 11 64-bit.

Requirements

  • Node.js

Installations

pip install mext

Usage

This package uses multiple provider codes to extract manga/manhua/manhwa data from online sites.

The providers and it's usage is listed below.

It's easy to use from python code.

Proxy

To use proxy IP's

export HTTP_PROXY='http://10.10.10.10:8000'
export HTTPS_PROXY='http://10.10.10.10:1212'

Steps:

  1. Import Mext like this

    from mext import Mext
    
  2. Get the URL of manga or chapter and pass it to Mext

    site_url = 'xxx0'
    manga_url = 'xxx1'
    chapter_url = 'xxx2'
    
    # Initialize
    me = Mext()
    
    # To get manga
    manga = me.get_manga(manga_url)
    
    # To get manga list
    manga_list = me.get_manga_list(site_url)
    
    # To get one particular chapter
    chapter = me.get_chapter(chapter_url)
    
    # Pass manga url to get chapter list belonging to manga
    chapter_list = me.get_manga_chapters(manga_url)
    

Providers

  1. MangaDex
  2. AsuraScans

...others coming soon

Mangadex

Get Manga using Manga URL

from mext import Mext

manga_url = 'https://mangadex.org/title/d1c0d3f9-f359-467c-8474-0b2ea8e06f3d/bocchi-sensei-teach-me-mangadex'

manga = me.get_manga(manga_url) # You'll get back a instance of Mext with Manga data
print(manga.to_dict())

Get Chapter using Chapter URL

from mext import Mext

chapter_url = 'https://mangadex.org/chapter/e183d3f4-fde0-4288-a1ed-8547490f84b3'

chapter = me.get_chapter(chapter_url) # You'll get back a instance of Mext with Chapter data
print(chapter.to_dict())

Get Chapters List belonging to a manga using Manga URL

from mext import Mext

manga_url = 'https://mangadex.org/title/f7972eed-0040-4aac-b8de-fc99c522c25a/anti-kissmanga-anthology'

chapter_list = me.get_manga_chapters(manga_url) # You'll get back a list of instances of Mext with a list of Chapter data
chapter_list = me.chapter_list
print(chapter_list.to_dict())

Credits

Made using

Contributions

Ready for any genuine support and valid pull requests.

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

mext-2.0.5.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

mext-2.0.5-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file mext-2.0.5.tar.gz.

File metadata

  • Download URL: mext-2.0.5.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for mext-2.0.5.tar.gz
Algorithm Hash digest
SHA256 ef8e16f85eadb1f1628aeb1ed7d5c0520a559a6ead38cde40fb8cd298140881f
MD5 4a2e86d2eeaacaba9fc0febc3d4db578
BLAKE2b-256 4291e7f7b728dba92db938e7a759977422c59d0c061c31b1ab9e95d5fe768e93

See more details on using hashes here.

File details

Details for the file mext-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: mext-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for mext-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 88252d5a22740e07cb7f0c600f4ea8fc52651604db3be8849b606fb6b1c0603d
MD5 8a8842fbc7e9e70fe242791c446f41f3
BLAKE2b-256 88aebcec858f6a4f12bf21164518c5e732c38429e326c148afed66ac038f6ac3

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