Get Anime wallpapers based on scrapping from websites.
- Alphacoders
Wallpaper Cave*Not working- 4K Wallpapers
- Wall Haven
- ZeroChan
- Getting Wallpaper from Alphacoders (dynamic)
const { AnimeWallpaper } = require("anime-wallpaper");
const wall = new AnimeWallpaper();
async function Wallpaper1() {
const wallpaper = await wall.getAnimeWall1({ search: "to love ru", page: 1 })
return console.log(wallpaper)
}
Wallpaper1()
Getting Wallpaper from Wallpaper Cave
async function Wallpaper2() {
const wallpaper = await wall.getAnimeWall2("keqing")
return console.log(wallpaper)
}
Wallpaper2()
- Getting Random Wallpaper from 4K Wallpapers
async function Wallpaper3() {
const wallpaper = await wall.getAnimeWall3()
return console.log(wallpaper)
}
Wallpaper3()
- Getting Wallpaper from WallHaven
async function Wallpaper4() {
const wallpaper = await wall.getAnimeWall4({ title: "anime romance", type: "sfw", page: 1 })
return console.log(wallpaper)
}
Wallpaper4()
- Getting Wallpaper from ZeroChan (dynamic)
async function Wallpaper5() {
const wallpaper = await wall.getAnimeWall5("Makima")
return console.log(wallpaper)
}
Wallpaper5()
Nb: function which has dynamic tag sometimes image url doesn't load or render because it's a dynamic website, you can re-fetch again to get image url
© Aizuu