Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Example code returns no result #2

Open
vibrantrida opened this issue Jan 7, 2021 · 0 comments
Open

Example code returns no result #2

vibrantrida opened this issue Jan 7, 2021 · 0 comments

Comments

@vibrantrida
Copy link

The example code produces no result, I also get an error saying that connection was refused. Perhaps they made changes to the API?

const Furazy = require('furazy')

const Furry = new Furazy()

const searchIt = async () => {
  let status = await Furry.canIUse()
  console.log(status)
  
  // 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()
{}
[]
[]
Error: connect ECONNREFUSED 127.0.0.1:80
// ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant