查询方法:
curl http://cet.99sushe.com/getscore.html -e http://cet.99sushe.com/ -d id=准备证号 -d vc=novcversion http://cet.99sushe.com/getscore.html
批量查询循环:
#include < stdio.h > #include < stdlib.h > int main(){ char buf[ 512 ]; char buf1[ 512 ] = " curl http://cet.99sushe.com/getscore.html -e http://cet.99sushe.com -d id=35213***** " ; //*号为隐藏号 char buf2[ 512 ] = " -d vc=novcversion http://cet.99sushe.com/getscore.html >>cet4.txt " ; char num[ 6 ] = " 00000 " ; int i, j; for (j = 1 ;j < 200 ;j ++ ){ num[ 0 ] = ' 0 ' + j / 100 ; num[ 1 ] = ' 0 ' + (j % 100 ) / 10 ; num[ 2 ] = ' 0 ' + j % 10 ; for (i = 1 ;i <= 30 ;i ++ ){ num[ 3 ] = ' 0 ' + i / 10 ; num[ 4 ] = ' 0 ' + i % 10 ; sprintf(buf, " %s%s%s\n " ,buf1,num,buf2); // printf("%s\n",num); system(buf); } }}
转载于:https://www.cnblogs.com/yequan/archive/2010/03/03/1677162.html
相关资源:批量查询高考成绩保存到excel