以下代碼只需要輸入名字和編號就可以了,然后直接運(yùn)行
成都創(chuàng)新互聯(lián)是一家以重慶網(wǎng)站建設(shè)公司、網(wǎng)頁設(shè)計(jì)、品牌設(shè)計(jì)、軟件運(yùn)維、營銷推廣、小程序App開發(fā)等移動(dòng)開發(fā)為一體互聯(lián)網(wǎng)公司。已累計(jì)為成都公路鉆孔機(jī)等眾行業(yè)中小客戶提供優(yōu)質(zhì)的互聯(lián)網(wǎng)建站和軟件開發(fā)服務(wù)。#輸入姓名
Name=`echo '姓名' | tr -d '\n' | xxd -plain | sed 's/\(..\)/%\1/g'`
#輸入編號
Id=編號
#保存detail
detail=userName=$Name&userId=$Id
curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -d 'userName='"${Name}"'&userId='"${Id}"'' -i "http://qndxx.bestcood.com/mp/WeixinAuth/LoginByUser2.html">/root/QNdaxuexi/respondheader.txt
#假如登錄成功
grep Set-Cookie:.* /root/QNdaxuexi/respondheader.txt >/root/QNdaxuexi/setcookie.txt
sed 's/ /\n/g' /root/QNdaxuexi/respondheader.txt >/root/QNdaxuexi/sed0.txt
sed 's/;/\n/g' /root/QNdaxuexi/sed0.txt >/root/QNdaxuexi/sed.txt
grep SSUUID /root/QNdaxuexi/sed.txt >/root/QNdaxuexi/cookie.txt
ck=`cat /root/QNdaxuexi/cookie.txt`
#ck=/root/QNdaxuexi/cookie.txt
curl -X GET -H "Cookie: $ck " 'http://qndxx.bestcood.com/nanning/daxuexi/' >/root/QNdaxuexi/html.txt
grep \{\"isLe.*\} /root/QNdaxuexi/html.txt >/root/QNdaxuexi/learndata.txt
sed 's/ var learnData = /\n/g' /root/QNdaxuexi/learndata.txt >/root/QNdaxuexi/sed1.txt
sed 's/;/\n/g' /root/QNdaxuexi/sed1.txt >/root/QNdaxuexi/sed2.txt
grep . /root/QNdaxuexi/sed2.txt >/root/QNdaxuexi/cidian.json
#獲取季次
sed 's/"title":"/\n/g' /root/QNdaxuexi/cidian.json >/root/QNdaxuexi/sed3.txt
sed 's/"/\n/g' /root/QNdaxuexi/sed3.txt >/root/QNdaxuexi/sed4.txt
grep 第.*季 /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/ji.txt
grep 第.*期 /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/qi.txt
grep :[0-9]*, /root/QNdaxuexi/sed4.txt >/root/QNdaxuexi/grep.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep.txt >/root/QNdaxuexi/sed5.txt
sed 's/,/\n/g' /root/QNdaxuexi/sed5.txt >/root/QNdaxuexi/sed6.txt
grep [0-9] /root/QNdaxuexi/sed6.txt | head -n 1 >/root/QNdaxuexi/id.txt
ji=`cat /root/QNdaxuexi/ji.txt`
qi=`cat /root/QNdaxuexi/qi.txt`
id=`cat /root/QNdaxuexi/id.txt`
#echo $ji
#echo $qi
#echo $id
############
curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Cookie: $ck " -d 'id='"${id}"'' -i "http://qndxx.bestcood.com/mp/gx/DaXueXi/LearnHit.html">/root/QNdaxuexi/respondbody.txt
curl -i "http://dxxoss.wwwtop.top/dxx_data.js">/root/QNdaxuexi/respondbody2.txt
grep \{.*\} /root/QNdaxuexi/respondbody2.txt >/root/QNdaxuexi/grep2.txt
sed 's/,/\n/g' /root/QNdaxuexi/grep2.txt >/root/QNdaxuexi/sed7.txt
grep "ji" /root/QNdaxuexi/sed7.txt >/root/QNdaxuexi/grep3.txt
grep "qi" /root/QNdaxuexi/sed7.txt >/root/QNdaxuexi/grep4.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep3.txt >/root/QNdaxuexi/sed8.txt
sed 's/:/\n/g' /root/QNdaxuexi/grep4.txt >/root/QNdaxuexi/sed9.txt
grep [0-9] /root/QNdaxuexi/sed8.txt >/root/QNdaxuexi/ji1.txt
grep [0-9] /root/QNdaxuexi/sed9.txt >/root/QNdaxuexi/qi1.txt
ji1=`cat /root/QNdaxuexi/ji1.txt`
qi1=`cat /root/QNdaxuexi/qi1.txt`
curl -i 'https://dxx.wwwtop.top/dxx_finish?a=${ji1}&b=${qi1}' >/root/QNdaxuexi/finish.txt
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧