You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of all, really appreciate for all the effort to make such a fantastic python crawl for ZhiHu.
But there are some error when I tried to run test.py after cloned.
I made the following to changes to get it to work.
I think zhihu change some html tag : in zhihu.py
change from
soup.find("h3", class_="zm-item-answer-author-wrap")
to
soup.find("div", class_="zm-item-answer-author-info")
change class user
from
elif user_url[0:28] != "https://www.zhihu.com/people/"
to
elif user_url.startswith('www.zhihu.com/people', user_url.index('//')+2) == False
Then everything works fine.
Thanks again for such a brilliant work
Cheers.
The text was updated successfully, but these errors were encountered:
Hi,
First of all, really appreciate for all the effort to make such a fantastic python crawl for ZhiHu.
But there are some error when I tried to run test.py after cloned.
I made the following to changes to get it to work.
def islogin():
url = "http://www.zhihu.com/settings/profile"
-- change to
url = "https://www.zhihu.com/settings/profile"
change from
soup.find("h3", class_="zm-item-answer-author-wrap")
to
soup.find("div", class_="zm-item-answer-author-info")
from
elif user_url[0:28] != "https://www.zhihu.com/people/"
to
elif user_url.startswith('www.zhihu.com/people', user_url.index('//')+2) == False
Then everything works fine.
Thanks again for such a brilliant work
Cheers.
The text was updated successfully, but these errors were encountered: