Helper functions

anime_downloader.sites.helpers.request.get(url: str, cf: bool = False, sel: bool = False, referer: str = None, cache: bool = True, 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.
  • sel (bool) – sel if True perfroms the request through selescrape (selenium).
  • referer (str) – a url sent as referer in request headers
anime_downloader.sites.helpers.request.post(url: str, cf: bool = False, sel: bool = False, referer: str = None, cache: bool = True, 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.
  • sel (bool) – sel if True perfroms the request through selescrape (selenium).
  • 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