Skip to content

getInformationMobile

Retrieves the information of the title/anime for the path anime on the mobile site.

Parameters

paramstypeRequiredDescription
htmlstringYesPlain html text.

Return

Returns an object containing the following data:
typescript

{
  title: string;
  description: string;
  type: string;
  cover: string;
  status: string;
  genres: string[];
  episodes: string[];
}

{
  title: string;
  description: string;
  type: string;
  cover: string;
  status: string;
  genres: string[];
  episodes: string[];
}

Targets

Here, we present the current sources from which this function retrieves data for the title Mushoku Tensei II: Isekai Ittara Honki Dasu.

Details

anime target

  • title

    The title name

    title target

  • status

    The current status of the title

    status target

  • description

    Synopsis/Overview of the Title

    description target

  • cover

    This takes the actual cover/banner of the title

    cover target

  • type

    Type of the title

    type target

  • genres

    Genres of the title

    genres targets

  • episodes

    Episodes of the title

    episodes targets

Usage

  1. Import the getInformationMobile method.
typescript
import { getInformationMobile } from '@untidy/animeflv/cheerio';
import { getInformationMobile } from '@untidy/animeflv/cheerio';
  1. Pass the parsed HTML text for the title from which you want to retrieve data:
typescript
const data = getInformationMobile(html);
const data = getInformationMobile(html);
  1. As an example, we present the extracted data for the title Mushoku Tensei II: Isekai Ittara Honki Dasu:
typescript
{
  title: 'Mushoku Tensei II: Isekai Ittara Honki Dasu',
  description: 'Segunda temporada de Mushoku Tensei: Isekai Ittara Honki Dasu',
  status: 'En emisión',
  type: 'Anime',
  cover: '/uploads/animes/covers/3825.jpg',
  genres: ['Drama', 'Ecchi', 'Fantasía'],
  episodes: ['/ver/mushoku-tensei-ii-isekai-ittara-honki-dasu-0']
}
{
  title: 'Mushoku Tensei II: Isekai Ittara Honki Dasu',
  description: 'Segunda temporada de Mushoku Tensei: Isekai Ittara Honki Dasu',
  status: 'En emisión',
  type: 'Anime',
  cover: '/uploads/animes/covers/3825.jpg',
  genres: ['Drama', 'Ecchi', 'Fantasía'],
  episodes: ['/ver/mushoku-tensei-ii-isekai-ittara-honki-dasu-0']
}