Skip to main content

package for load manga! :)

Project description

getManga

Tool for load manga from different websites

I just wanted to read the manga...

import main class:

from getManga import Manga
async def main():
    site = 'mangalib.me' # Website's domen
    title = 'shingeki-no-kyojin' #unique name
    link = 'https://mangalib.me/shingeki-no-kyojin'
    # Inislization:
    manga = await Manga.get(site,title).parse()
    manga2 = await Manga(link).parse()


    # Methods:

    manga.info 				#some information about manga
    manga.img_list 				#return links for pages(take many time for work)
    manga.chapter_list			#return list of (volume_number, chapter_number, chapter_name)
    manga.chapter_dict			#return dict {volume_numbers: {chapter_numbers: chapter_name}}

    chapter = manga.get_chapter(int) 	#return chapter №int
    volume = manga.get_volume(int) 		#return volume №int

    await chapter.img_list			#return links for pages from volume
    await volume.img_list  			#return links for pages from volume

#Start parsing
if __name__ == "__main__":
    loop = get_event_loop()
    loop.run_until_complete(main())

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

getmanga-0.1.5.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

getmanga-0.1.5-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

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