aniping.scraper.anilist

class aniping.scraper.anilist.Anilist(config, plugin_manager)

Anilist Scraper Plugin.

This plugin implements the anilist scraper and tracker for getting show information.

get_shows_by_category(search_results=None)

Gets all shows from the DB and seperates into watching, tv, movies, and specials.

Keyword Arguments:
 search_results (str) – A list of database shows to parse into the separate lists instead of all shows.
Returns:tuple. 4 lists of shows.
  • watching – Shows currently being watched.
  • airing – TV shows being aired.
  • specials – TV and Web Specials (OVA, ONA, etc.) airing or due to air.
  • movies – Movies airing or due to premiere.
name

str – Returns the name of the plugin.

scrape_shows()

Checks our anilist for shows and updates them in the database if they’re there.

If not, adds them. Deletes everything else. Typically run in a separate thread from the main server instance. Should run regularly to keep the database up to date.

Parameters:config (dict) – The configuration dictionary.
url

str – Returns the url of anilist.