Joke Collection Website - Blessing messages - Python crawler, how to get the search results after entering the verification code?

Python crawler, how to get the search results after entering the verification code?

First of all, the subject enters the verification code in the program, mainly to imitate the real person's search as much as possible, and it turns out that all cookie are the same, so there is no need to enter the verification code in this step. If so, you don't need to enter the verification code. In addition, according to the subject's code, the subject only needs to compare the cookie before and after entering the verification code, and if there is no difference, remove the verification code. If there is a difference, it means that something has been done during the processing of verification code, and verification code is needed.

Off topic, the overall idea of the topic is more complicated. For our government website, there is actually no such fine logic. For example, the one above you only needs to be spliced into a get request.