Skip to content

iseizuu/anime-wallpaper

Repository files navigation

Anime Wallpaper

Version Anime Wallpaper on npm

Get Anime wallpapers based on scrapping from websites.


Version

Installing

npm install anime-wallpaper

Example Usage

At the head of your file, start by importing the necessary classes

const { AnimeWallpaper, AnimeSource } = require('anime-wallpaper');
const wallpaper = new AnimeWallpaper();
const wallpaper = await wallpaper.random();
const wallpaper = await wallpaper.search({ title: "Misaka Mikoto" }, AnimeSource.WallHaven);
const wallpaper = await wallpaper.search({ title: "Keqing" }, AnimeSource.Wallpapers);
const wallpaper = await wallpaper.search({ title: "Misaka Mikoto" }, AnimeSource.ZeroChan);

Warning

In some rare cases, the fetching process might fail due to inconsistencies when scraping websites.

Contributors

Fork then clone the project and install its dependencies:

npm i

In the root folder of the project type the following to compile the .ts into .js

tsc

© Aizuu

About

Get Anime wallpapers based on scraping from websites.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •