The first picture is the question bank, and the second picture is a randomly generated question. Now I want to do a simulated login, and then I will automatically fill out the answer to submit. What is the process?
The first picture is the question bank, and the second picture is a randomly generated question.
Now I want to do a simulated login, and then I will automatically fill out the answer to submit. What is the process?
Reply content:
The first picture is the question bank, and the second picture is a randomly generated question.
Now I want to do a simulated login, and then I will automatically fill out the answer to submit. What is the process?
A large question bank is required !!!!!
This is similar to the course schedule I used to capture. If the subject must be written in php, you need to do the following:
-
The simplehtmldom library is recommended for Extracting Questions and options. The extracted content is as convenient as jQuery.
-
The simulated submission mainly involves the CURL operation. You need to pay attention to whether to save cookies and so on.
In fact, if the subject is willing to learn node. JS, he can use phantomjs to simulate the browser. The essence is to run a headless browser.
If you are not playing segmentfault or looking at such a title, we recommend that you strictly regulate the question title.