Metadata-Version: 2.1
Name: mext
Version: 0.0.3
Summary: A simple manga extractor. Extracts any comic info, chapter list and chapter pages. In development.
Home-page: https://github.com/modbender/manga-extractor
Author: Yashas H R
Author-email: rameshmamathayashas@gmail.com
License: UNKNOWN
Platform: any
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE

# 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.**

## Installations

Not yet on pypi but will soon be, and then it will be like below

`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.

- Step 1:
Import `Mext` like this

  `from mext import Mext`

- Step 2:
Get the URL of manga or chapter and pass it to `Mext`

  ```python
  manga_url = 'xxx1'
  chapter_url = 'xxx2'

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

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

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

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

## Providers

- Mangadex
- ...others coming soon

### Mangadex

Get Manga using Manga URL

```python
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)
data = me.get() #You'll get back a instance of Manga
print(vars(data['manga']))
```

Get Chapter using Chapter URL

```python
from mext import Mext

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

me = Mext(['chapter'], chapter_url)
data = me.get() #You'll get back a instance of Chapter
print(vars(data['chapter']))
```

Get Chapter List belonging to a manga using Manga URL
```python
from mext import Mext

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

me = Mext(['chapters'], manga_url)
data = me.get() #You'll get back a list of instances of Chapter
print(data)
```

## Credits

Mangadex API - [MangaDex.py](https://github.com/Proxymiity/MangaDex.py)


