Description
Unofficial nekos.best API wrapper.
Description
The Nekos.best API Wrapper in Haskell is a powerful and flexible tool designed to interact seamlessly with the Nekos.best API, a popular service for fetching adorable and charming neko-themed images and more
README.md
nekos-best
Haskell wrapper for nekos.best API
Examples
Get a neko image
import NekosBest.API (getNbImage)
import qualified NekosBest.Category as C
main = do
res <- getNbImage C.Neko
print res
For random images you can use randomNbImage
passing a RandomGen
value
import NekosBest.API (randomNbImage)
import qualified NekosBest.Category as C
main = do
gen <- getStdGen
(res, gen') <- randomNbImage gen
print res
Downloading an image
import NekosBest.API (getNbImage, downloadNbImage)
import qualified NekosBest.Category as C
main = do
res <- getNbImage C.Neko
mapM_ (\x -> downloadNbImage x "filename") res