A zhihu crawler (latest), simulated landing, get answers,
Python environment: python3.X dependent packages: requests
Download the file to a folder, run it, execute the program as prompted,
Verification code problem: the program will download the verification code to the file directory, you need to manually fill in the verification code, after logging in once, it will record your cookies, you can directly log in next time, do not need to fill in the password, cookies are also in the program file directory.
Instantiation:
from python_zhihu import ZhiHu
zh=ZhiHu()
Download a good answer to a question:
En. Get_answer_text (‘ url of a question ‘)
This method downloads the well-liked text answer to a question and stores it in a TXT file
Download all images of a problem:
En. Get_answer_img (‘ url of a problem ‘)
This method downloads all the images in the answers to a question and categorizes them by the person’s nickname
More features may be added later, stay tuned to….