With the popularity, the public platform has become the next goal of many developers. The author is not so attractive to such new things. However, a friend recently helped develop a score query function on the public platform. So I studied it in my spare time.
The main implementation step is to simulate login to the target website through the php curl technology, obtain the user's score information through the login user, and use regular expressions to capture and store the data, use HTML technology to retypeset data.
The function of the public platform is to query scores for the purpose of browsing. The overall technical implementation lies in the php curl technology. Next, I found a file to obtain the score. The Code is as follows.
Please log on to Password
Qing. php
<? = ('./temp','cookie' = 'http://218.61.108.163/ACTIONQUERYSTUDENTSCORE.APPPROCESS' = 'WebUserNO=stuid&Password=passwd&Agnomen=code&applicant=ACTIONQUERYGRADUATESCHOOLREPORTBYSELF' = curl_init(, CURLOPT_HEADER, 0, CURLOPT_RETURNTRANSFER, 1, CURLOPT_POST, 1, CURLOPT_COOKIEJAR, , CURLOPT_POSTFIELDS, ='http://218.61.108.163/ACTIONQUERYGRADUATESCHOOLREPORTBYSELF.APPPROCESS' = curl_init(, CURLOPT_HEADER, 0, CURLOPT_RETURNTRANSFER, 0, CURLOPT_COOKIEFILE, = curl_exec( ="|(<=<td>).*(?=</td>)|"(,, = [0 = [1 = [1 ?>
Page for obtaining scores