Skip to main content

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

Reason this release was yanked:

build errors

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.

Installations

pip install mext

Important Steps:

  • Have Chrome browser installed, download chromedriver matching your Chrome browser version.
  • Add chromedriver location to PATH environment variable for this to work

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.

Steps:

  1. Import Mext like this

    from mext import Mext

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

manga_url = 'xxx1'
chapter_url = 'xxx2'

# Initialize
me = Mext()

# To get manga
me.populate(['manga'], manga_url)
manga = me.manga

# To get one particular chapter
me.populate(['chapter'], chapter_url)
chapter = me.chapter

# Pass manga url to get chapter list belonging to manga
me.populate(['chapter_list'], manga_url)
chapters = me.chapter_list

# Pass manga url when you need both manga and chapter
me.populate(['manga', 'chapter_list'], manga_url)
manga = me.manga
chapters = me.chapter_list

If you are using Mext for one time data collection you could pass the arguments given to populate to Mext directly at initialization.

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'

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

Get Chapter using Chapter URL

from mext import Mext

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

me = Mext(['chapter'], chapter_url) # You'll get back a instance of Mext with Chapter data
chapter = me.chapter
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'

me = Mext(['chapter_list'], 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

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-1.0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

mext-1.0.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mext-1.0.2.tar.gz
  • Upload date:
  • Size: 14.3 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-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ae75448c0d77a4bb5ebf52d8a991c4a222ad0c599aaa3d9775f6b62db48c26fb
MD5 21d4c935f4302086852a71ab9028ed37
BLAKE2b-256 58b79859fc0ebcad49d9246e3b88bead045da9af5490208168cb570725b25e9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mext-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91fa33b4ef998effe2a7176167528744ab4709619c001c687fe2f813a2f8c355
MD5 2e52c29d59612276a8366666040703e0
BLAKE2b-256 ce105f7d923432f07970fe83f4b3affb59677fa6d32530959f0b3788d22262ac

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