topic.hierarchy doesn't seem to work
Closed this issue · 6 comments
returns:
{ id: 0,
tid: 0,
link: '',
name: '',
avatar: '',
followers: 0,
parents: [],
children: [],
crawltime: 1470400871707 }
btw, cool project
Thx~
But I got the exact result.
It seems that your cookie is invalid (incorrect or expired), pls check it.
Or this may happen because of an invalid topic id, pls make sure that you can access to the topic page at https://www.zhihu.com/topic/${topic_id}/organize
You are write. wrong cookie indeed. Thank you.
I have the the same problem but don't know how to fix it.
I run document.cookie
in browser console and copied the string into the cookie file. It looks like
_za=xxxx; d_c0="xxxx"; _zap=xxxx; q_c1=xxxx; l_cap_id="xxxx"; cap_id="xxxx"; r_cap_id="xxxx"; login="xxxx"; _ga=xxxx; _xsrf=xxxx; etc...
where did i go wrong?
@lihaocruiser the authorization token (aka z_c0
) in cookie is httpOnly. So document.cookie
does not include this value. You should copy cookie from http headers.
@lihaocruiser FYI, if you use chrome, there is a extension called EditThisCookie
@syaning @yizhiheng got it. thanks a lot!