Async-Animanga, meant for Python. It scrapes the web for information about Manga, Anime and Doujin. (Hentai/Ecchi Anime not supported yet) It uses a modern Pythonic API and advanced aiohttp/asyncio implementations to provide extreme performance upgrades for large scale projects.
Project description
Async-Animanga
An Async/Aiohttp compatible library.
Async-Animanga is an async ready web scraping library that returns Manga, Anime and Doujin information.
Installation
python3 -m pip install Async-Animanga
>>> from Async_Animanga import Manga
What you can get
Manga
Manga Author
get_manga_author(self, manga: str)
String output.
Manga Characters
get_manga_characters(self, manga: str)
List output.
Manga Content Warnings
get_manga_content_warning(self, manga: str)
List output.
Manga Cover (URL)
get_manga_cover(self, manga: str)
String output.
Manga Description
get_manga_description(self, manga: str)
String output.
All Manga Information as JSON (Use the functions instead)
get_manga_json(self, manga: str)
Dictionary output.
Manga Rank
get_manga_rank(self, manga: str)
String output.
Manga Rating
get_manga_rating(self, manga: str)
String output.
Manga Reviews
get_manga_reviews(self, manga: str)
List output.
Manga Size
get_manga_size(self, manga: str)
String output.
Manga Tags
get_manga_tags(self, manga: str)
List output.
Manga URL
get_manga_url(self, manga: str)
String output.
Manga Years (Years Manga was in Production)
get_manga_year(self, manga: str)
String output.
Popular Manga
get_popular_manga(self)
List output.
Code and Response examples will be below.
Authors:
- Original library Author - Siddhant Kumar
- CURRENT LIBRARY - Async Library Author - TheOnlyWayUp
Acknowledgements
Code Examples
Manga Author
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_author(Manga, "bleach")))
tite-kubo
Manga Characters
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_characters(Manga, "bleach")))
['Ichigo KUROSAKI', 'Orihime INOUE', 'Renji ABARAI', 'Rukia KUCHIKI', 'Uryuu ISHIDA', 'Yasutora SADO', 'Byakuya KUCHIKI', 'Coyote STARRK', 'Dondochakka BILSTIN', 'Ganju SHIBA', 'Genryuusai YAMAMOTO', 'Gin ICHIMARU', 'Grimmjow JEAGERJAQUES', 'Hanatarou YAMADA', 'Hiyori SARUGAKI', 'Ikkaku MADARAME', 'Isane KOTETSU', 'Izuru KIRA', 'Juushiro UKITAKE', 'Kaname TOUSEN', 'Kenpachi ZARAKI', 'Kisuke URAHARA', 'Kon', 'Kugo GINJO', 'Marechiyo OMAEDA', 'Mayuri KUROTSUCHI', 'Momo HINAMORI', 'Neliel Tu ODELSCHWANCK', 'Nnoitra JIRUGA', 'Pesche GUATICHE'...]
It actually returns a huge list, I shortened it here.
Manga Content Warning
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_content_warning(Manga, "bleach")))
['Violence']
Manga Cover
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_cover(Manga, "bleach")))
https://www.anime-planet.com/images/manga/covers/178.jpg?t=1394840454
Manga Description
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_description(Manga, "bleach")))
Ichigo Kurosaki is an average high school boy with a not-so-average ability to see spirits - something that hadn't affected his life much until a strange woman entered his room one day. Named Kuchiki Rukia, she's a shinigami who was sent from the spirit world to destroy a hollow - a dead-soul-turned-monster; and much to her surprise, Ichigo can see her. When the hollow suddenly attacks his family, Rukia intervenes and is injured in the process, leaving Ichigo to fight it himself. But when Rukia lends him her shinigami powers - which is forbidden - he inadvertently drains them away and has no way to return them. Now, Ichigo is a full-fledged...
It returned the full description but I shortened it.
Manga JSON
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_json(Manga, "bleach")))
`
Manga Rank
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_rank(Manga, "bleach")))
{'title': 'Bleach', 'description': "Ichigo Kurosaki is an average high school boy with a not-so-average ability to see spirits - something that hadn't affected his life much until a strange woman entered his room one day. Named Kuchiki Rukia, she's a shinigami who was sent from the spirit world to destroy a hollow - a dead-soul-turned-monster; and much to her surprise, Ichigo can see her. When the hollow suddenly attacks his family, Rukia intervenes and is injured in the process, leaving Ichigo to fight it himself. But when Rukia lends him
It returned the full JSON, I shortened it.
Manga Rating
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_rating(Manga, "bleach")))
Rank #1,954
Manga Reviews
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_reviews(Manga, "bleach")))
['Story:\n', "I love Bleach. I think it has some great story arcs, awesome characters and some cool action scenes. However, amongst that is the 9 volume wait for the main plot to start (athough it's well worth the wait), some seriously underdeveloped characters and that stupid but necessary story arc in volumes 49-54.\n", 'Okay... I need to get my thoughts down on this series. I\'ve been a Naruto fan for the past six years and only this year, 2013, did I decide to sit down and read the Bleach manga. I thought "Now I\'d be the biggest goddamn hypocrite if I said Bleach sucked ass without ever perusing the source material". Never mind that I had been saying that the whole time I had been a Naruto fan.\n', '*THIS REVIEW IS BASED ON CHAPTERS 1-581*\n', 'Bleach\n']
Manga Size
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_size(Manga, "bleach")))
Vol: 74; Ch: 686
Manga Tags
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_tags(Manga, "bleach")))
['Action', 'Adventure', 'Comedy', 'Drama', 'Shounen', 'Afterlife', 'Ghosts', 'Shinigami', 'Supernatural', 'Adapted to Anime', 'Violence']
Manga URL
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_url(Manga, "bleach")))
https://www.anime-planet.com/manga/bleach
Manga Year
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_manga_year(Manga, "bleach")))
2002 - 2016
Popular Manga
from Async_Animanga import Manga
loop = asyncio.get_event_loop()
print(loop.run_until_complete(Manga.get_popular_manga(Manga, "bleach")))
['Solo Leveling', 'The Beginning After the End', 'Tokyo Revengers', 'Eleceed', 'Haikyuu!!', 'One Piece', 'Here U Are', "JoJo's Bizarre Adventure Part 7: Steel Ball Run", 'Berserk', 'Here U Are - Specials', 'Toilet-Bound Hanako-kun', 'Semantic Error', 'That Time I Got Reincarnated as a Slime ', 'I Shall Master This Family', '19 Days', "Heaven Official's Blessing", 'Who Made Me a Princess', 'The Master of Diabolism', 'Fullmetal Alchemist', 'I Had That Same Dream Again', 'Given', 'The Founder of Diabolism (Novel)'...]
It returned the full list, I shortened it.
Docs for Doujin and Anime are still in progress, in the mean time you can do import Async_Animanga
and help(Async_Animanga.Anime)
or help(Async_Animanga.Doujin)
- The docs are just more readable versions of this.
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
File details
Details for the file Async-Animanga-0.9.6.tar.gz
.
File metadata
- Download URL: Async-Animanga-0.9.6.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4603cf084351a035ae9eae72df6a30fa54324ca5526b32ddb40626939946c02c |
|
MD5 | f3ccb08eedf12f64c047ca41fff8bf1e |
|
BLAKE2b-256 | 66cb09e2ea0d0ff1c1d93ae13d72193f3c461a52b271670fed231b3e092103a0 |