Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #6

Merged
merged 5 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 54 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,33 @@ pip3 install -U wibuapi
```

#### Install from repo
```bash
```shell
root@zyxdevs:~ git clone https://github.com/zYxDevs/wibu-api-py wibuapi
root@zyxdevs:~ cd wibuapi
root@zyxdevs:~ python3 setup.py install
```

## Telegram Bot:
_I've created official telegram bot to interacted with WibuAPI_
_There's many useful features in bot but it required big resource, so i make it for paid users only. If you interest to buy PM me on Telegram._

**Paid Features:**

- [x] LH Translation zipper
- [x] Shinigami zipper
- [x] Worldmanhwas zipper
- [x] Maid Manga zipper
- [x] Mangayaro zipper
- [x] Cosmicscans zipper
- [x] nHentai zipper
- [x] Sheakomik, Sheamanga zipper
- [x] Komikindo.info zipper
- [x] Otomi Games
- [x] Search parser
- [x] Download link scrapper
- [x] Javhd
- [x] Search parser
- [x] Download link scrapper
- [x] Other incoming features

[![WibuAPI Bot](https://img.shields.io/badge/WibuAPI-Bot-blue?&logo=telegram)](https://wibuapibot.t.me)
[![Yoga Pranata](https://img.shields.io/badge/Yoga-Pranata-blue?&logo=telegram)](https://t.me/Yoga_CIC)
Expand All @@ -42,7 +61,7 @@ api = WibuAPI()
```

### Anime, Hentai, Donghua
_For nekopoi scrapper only works in [bot](https://t.me/wibuapibot)._
_For nekopoi search only works in [bot](https://t.me/wibuapibot)._

| Website | Params |
| :-: | :-: |
Expand All @@ -52,6 +71,7 @@ _For nekopoi scrapper only works in [bot](https://t.me/wibuapibot)._
| [Kusonime](https://github.com/zYxDevs/wibu-api-py#kusonime) | link |
| [Doronime](https://github.com/zYxDevs/wibu-api-py#doronime) | link |
| [Samehadaku](https://github.com/zYxDevs/wibu-api-py#samehadaku) | link |
| [Nekopoi](https://github.com/zYxDevs/wibu-api-py#nekopoi) | link |

#### [Lendrive](https://lendrive.web.id)
```python
Expand Down Expand Up @@ -101,6 +121,14 @@ res = api.samehadaku(url)
print(res)
```

#### [Nekopoi](https://nekopoi.care)
```python
# works with single eps link (hentai, jav)
url = "https://nekopoi.care/koumi-jima-shuu-7-de-umeru-mesu-tachi-episode-1-subtitle-indonesia/"
res = api.nekopoi(url)
print(res)
```

### Manga, Doujin, Manhua, Manhwa

| Website | Params |
Expand All @@ -111,7 +139,9 @@ print(res)
| [Mangatale](https://github.com/zYxDevs/wibu-api-py#mangatale) | link |
| [Kiryuu](https://github.com/zYxDevs/wibu-api-py#kiryuu) | link |
| [Masterkomik](https://github.com/zYxDevs/wibu-api-py#masterkomik) | link |
| [Mangakita](https://github.com/zYxDevs/wibu-api-py#mangakita) | link |
| [Doujindesu](https://github.com/zYxDevs/wibu-api-py#doujindesu) | link |
| [Crotpedia](https://github.com/zYxDevs/wibu-api-py#crotpedia) | link |

#### [Rawkuma](https://rawkuma.com)
```python
Expand Down Expand Up @@ -173,6 +203,16 @@ res = api.masterkomik(url)
print(res)
```

#### [Mangakita](https://mangakita.net)
```python
# works with list and single chapter
# list: https://mangakita.net/manga/please-go-home-akutsu-san/
# single: https://mangakita.net/please-go-home-akutsu-san-chapter-137/
url = "https://mangakita.net/manga/please-go-home-akutsu-san/"
res = api.mangakita(url)
print(res)
```

#### [Doujindesu](https://212.32.226.234)
```python
# works with list and single chapter
Expand All @@ -183,14 +223,23 @@ res = api.doujindesu(url)
print(res)
```

#### [Crotpedia](https://38.242.194.12)
```python
# works with list chapter
# list: https://38.242.194.12/baca/series/young-housemaid/
url = "https://38.242.194.12/baca/series/young-housemaid/"
res = api.crotpedia(url)
print(res)
```

**Note:**
```
You can see more endpoints on https://wibu-api.eu.org/docs or wibuapi.py file.
```
```

Sometimes their will change domains, that will make some endpoints wont works.
Please let me know when their sites change domains, I will asap fix dead endpoints.

If you find any bugs or requests a new sites,
You can ping me on telegram or make new issue.
```

Expand Down
3 changes: 0 additions & 3 deletions examples/__init__.py

This file was deleted.

50 changes: 42 additions & 8 deletions wibuapi/wibuapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ def anichin(self, link: str):
except Exception as e:
return "An error occured report on @YBotsSupport\n\n{}".format(e)

def nekopoi(self, link: str):
"""works with single eps link
https://nekopoi.care/koumi-jima-shuu-7-de-umeru-mesu-tachi-episode-1-subtitle-indonesia/
"""
try:
url = f"{self.base_url}/anime/nekopoi?link={link}"
response = get(url, timeout=15).json()
return dumps(response, indent=2)
except Exception as e:
return "An error occured report on @YBotsSupport\n\n{}".format(e)

def kusonime(self, link: str):
"""works with batch, bd, and single eps link
https://kusonime.com/isekai-ojisan-batch-subtitle-indonesia/
Expand Down Expand Up @@ -148,6 +159,18 @@ def masterkomik(self, link: str):
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def mangakita(self, link: str):
"""work with list and single chapter
list: https://mangakita.net/manga/please-go-home-akutsu-san/
single: https://mangakita.net/please-go-home-akutsu-san-chapter-137/
"""
try:
url = f"{self.base_url}/manga/mangakita?link={link}"
response = get(url, timeout=15).json()
return dumps(response, indent=2)
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def doujindesu(self, link: str):
"""works with list and single chapter
list: https://212.32.226.234/manga/i-cant-stand-it-ajumma/
Expand All @@ -160,6 +183,17 @@ def doujindesu(self, link: str):
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def crotpedia(self, link: str):
"""works with list chapter
list: https://38.242.194.12/baca/series/young-housemaid/
"""
try:
url = f"{self.base_url}/manga/crotpedia?link={link}"
response = get(url, timeout=15).json()
return dumps(response, indent=2)
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def wibusubs(self, link: str):
"""work with single post link (may bug sometimes)
https://www.wibusubs.moe/2023/03/brother-trap-2023-09-tamat-subtitle.html
Expand All @@ -179,6 +213,14 @@ def sukidesuost(self, link: str):
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def hikarinoakari(self, link: str):
try:
url = f"{self.base_url}/music/hikarinoakari?link={link}"
response = get(url, timeout=15).json()
return dumps(response, indent=2)
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def google(self, query: str):
try:
url = f"{self.base_url}/google/search?query={query}"
Expand Down Expand Up @@ -323,14 +365,6 @@ def ud(self, query: str):
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def wall(self, query: str):
try:
url = f"{self.base_url}/etc/wallhd?query={query}"
response = get(url, timeout=15).json()
return dumps(response, indent=2)
except Exception as e:
return f"An error occured report on @YBotsSupport\n\n{e}"

def youtube(self, url: str):
"""tested on youtube video link, other not tested yet
https://www.youtube.com/watch?v=a1V0UbBNliM
Expand Down