getInformationMobile
Retrieves the information of the title/anime for the path anime
on the mobile site.
Parameters
params | type | Required | Description |
---|---|---|---|
html | string | Yes | Plain 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
title
The title name
status
The current status of the title
description
Synopsis/Overview of the Title
cover
This takes the actual cover/banner of the title
type
Type of the title
genres
Genres of the title
episodes
Episodes of the title
Usage
- Import the
getInformationMobile
method.
typescript
import { getInformationMobile } from '@untidy/animeflv/cheerio';
import { getInformationMobile } from '@untidy/animeflv/cheerio';
- Pass the parsed HTML text for the title from which you want to retrieve data:
typescript
const data = getInformationMobile(html);
const data = getInformationMobile(html);
- 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']
}