syaning / zhihu-api Goto Github PK
View Code? Open in Web Editor NEWUnofficial API for zhihu.
Home Page: https://syaning.github.io/zhihu-api/
License: MIT License
Unofficial API for zhihu.
Home Page: https://syaning.github.io/zhihu-api/
License: MIT License
如题,抓不到数据
提示SyntaxError: Unexpected token <
打印了下抓到的数据,接口都返回403
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)
returns:
{ id: 0,
tid: 0,
link: '',
name: '',
avatar: '',
followers: 0,
parents: [],
children: [],
crawltime: 1470400871707 }
btw, cool project
现在是用Cookie
里的z_c0
给header.Authorization
赋值
this.headers['Authorization'] = `Bearer ${parsedCookie.z_c0}`
能给Request module加一个函数, 比如setAuth
或者setAuthorization
来overwrite这个值吗?
41 passing (39s)
3 failing
SyntaxError: Unexpected token <
at Object.parse (native)
at lib/api/question.js:48:25
at process._tickCallback (internal/process/next_tick.js:103:7)
SyntaxError: Unexpected token <
at Object.parse (native)
at lib/api/question.js:48:25
at process._tickCallback (internal/process/next_tick.js:103:7)
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)
请问为什么user.profile是请求页面, 为什么不直接调用知乎的/api/v4/members/${urlToken}
api?
我试着读取了一下“「未归类」话题”
结果没读取完整的子话题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.