web_programming.fetch_anime_and_play

Attributes

BASE_URL

anime_name

Functions

get_anime_episode(→ list)

[summary]

search_anime_episode_list(→ list)

[summary]

search_scraper(→ list)

[summary]

Module Contents

web_programming.fetch_anime_and_play.get_anime_episode(episode_endpoint: str) list

[summary]

Get click url and download url from episode url

>>> type(get_anime_episode("/watch/kimetsu-no-yaiba/1"))
<class 'list'>
Args:

episode_endpoint (str): [Endpoint of episode]

Raises:

e: [description]

Returns:

[list]: [List of download and watch url]

web_programming.fetch_anime_and_play.search_anime_episode_list(episode_endpoint: str) list

[summary]

Take an url and return list of episodes after scraping the site for an url.

>>> type(search_anime_episode_list("/anime/kimetsu-no-yaiba"))
<class 'list'>
Args:

episode_endpoint (str): [Endpoint of episode]

Raises:

e: [description]

Returns:

[list]: [List of episodes]

web_programming.fetch_anime_and_play.search_scraper(anime_name: str) list

[summary]

Take an url and return list of anime after scraping the site.

>>> type(search_scraper("demon_slayer"))
<class 'list'>
Args:

anime_name (str): [Name of anime]

Raises:

e: [Raises exception on failure]

Returns:

[list]: [List of animes]

web_programming.fetch_anime_and_play.BASE_URL = 'https://ww1.gogoanime2.org'
web_programming.fetch_anime_and_play.anime_name