Helper functions

anime_downloader.sites.helpers.request.get(url: str, cf: bool = True, referer: str = None, headers=None, **kwargs)[source]

get performs a get request

Parameters:
  • url (str) – url is the url of the request to be performed
  • cf (bool) – cf if True performs the request through cfscrape. For cloudflare protected sites.
  • referer (str) – a url sent as referer in request headers
anime_downloader.sites.helpers.request.post(url: str, cf: bool = True, referer: str = None, headers=None, **kwargs)[source]

post performs a post request

Parameters:
  • url (str) – url is the url of the request to be performed
  • cf (bool) – cf if True performs the request through cfscrape. For cloudflare protected sites.
  • referer (str) – a url sent as referer in request headers
anime_downloader.sites.helpers.request.soupify(res)[source]

soupify Beautiful soups response object of request

Parameters:res – res is request.response
Returns:
Return type:BeautifulSoup.Soup