Coder Social home page Coder Social logo

zhihu-api's Introduction

Hi there 👋

zhihu-api's People

Contributors

slobber avatar syaning avatar yizhiheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zhihu-api's Issues

SyntaxError

Hi, I continue getting the following error. My environment is v5.10.1. Also, my server is located in New York. Will that effect the code? Thanks.

Trace: [SyntaxError: Unexpected end of input]
at process._tickCallback (internal/process/next_tick.js:103:7)

topic.hierarchy doesn't seem to work

returns:

{ id: 0,
tid: 0,
link: '',
name: '',
avatar: '',
followers: 0,
parents: [],
children: [],
crawltime: 1470400871707 }

btw, cool project

Request.setAuth函数

现在是用Cookie里的z_c0header.Authorization赋值

this.headers['Authorization'] = `Bearer ${parsedCookie.z_c0}`

能给Request module加一个函数, 比如setAuth或者setAuthorization来overwrite这个值吗?

npm test不能全部通过

41 passing (39s)
3 failing

  1. api.question api.question.latest():
 SyntaxError: Unexpected token <
     at Object.parse (native)
     at lib/api/question.js:48:25
     at process._tickCallback (internal/process/next_tick.js:103:7)
  1. api.question api.question.list(start, offset):
  SyntaxError: Unexpected token <
      at Object.parse (native)
      at lib/api/question.js:48:25
      at process._tickCallback (internal/process/next_tick.js:103:7)
  1. api.user #user.questions(page):
 Error: connect ETIMEDOUT 220.194.224.15:443
     at Object.exports._errnoException (util.js:890:11)
     at exports._exceptionWithHostPort (util.js:913:20)
     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1059:14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.