Furazy.js,开源的小动物图片收集库

in Web 前端 with 0 comment

为回馈社区和热爱的兽人文化,我开发了一个能收集毛茸茸小动物图片的 npm 包。

eevee


Furazy - 轻巧的小动物图片收集库

A module for searching FURRY pictures.
Find it on NPM / Add issues on Github

Usage

For Node.js

Install
$ npm install furazy --save
Import
// es5
const Furazy = require("furazy")
// es6及以上
import Furazy from "furazy"
APIs
MethodExplainAsyncSupported sitesVersion
1Furry.searchImage()Search FURRY images.Ye621.net, e926.net, furaffinity.comv0.0.1
2Furry.searchComic()Search FURRY dojins.Ymyreadingmanga.infov0.1.0
3Furry.getComic()Get a dojin through url.Ymyreadingmanga.infov0.1.0
Usage
const Furry = new Furazy()

/*
  Furazy 的所有请求均为异步操作,可用 .then() 或 await 获取结果
  All requests in Furazy are asynchronous, u can use .then() or await to get results.
*/
const searchIt = async () => {
  // Search furry pictures
  let searchResult = await Furry.searchImage(
    "eevee", //[String]name (search keywords)
    0,       //[Int]type, 0: e621.net,1: fa, 2: e926.net
    1,       //[Int]page
    1        //[Int]limit
  )
  console.log(searchResult)

  // Search doujins
  let mrm = await Furry.searchComic(
    "pokemon", //[String]name (search keywords)
    0,         //[Int]sort
    1,         //[Int]page
  console.log(mrm)

  // View doujins (only for myreadingmanga.info now)
  let comic = await Furry.getComic(
    "your_comic_url" //[String]commicUrl
  )
  console.log(comic)
}

searchIt()
Result sample
[
  {
    title:
      "2019 ambiguous_gender bodily_fluids digital_drawing_(artwork) digital_media_(artwork) dragon dragonite drooling duo eevee feral hiore hi_res imminent_vore larger_pred licking licking_lips macro mammal nintendo oral_vore pokémon pokémon_(species) saliva simple_background size_difference slightly_chubby soft_vore tongue tongue_out video_games vore white_background",
    preview:
      "https://static1.e621.net/data/preview/65/e2/65e289e2e05ed9a004d9e18fefda2962.jpg",
    image:
      "https://static1.e621.net/data/65/e2/65e289e2e05ed9a004d9e18fefda2962.png",
    author: "hiore",
    author_url:
      "https://www.pixiv.net/en/artworks/77983470, https://i.pximg.net/img-original/img/2019/11/25/03/37/25/77983470_p2.png, https://www.pixiv.net/member.php?id=45363288, https://twitter.com/D0Sd0ou3fm1R1rB/status/1196483299465519105"
  }
]

For Python3

Under development (o ´∀ `o)

Find me

License

MIT


-EOF-

Responses