使用了两个模块
模块1精易模块的类_json
模块2鱼刺类.HTTP的WinHttpR和正则表达式
子程序支持密码和无密码解析(代码已自动301跳转)
变量名 | 类 型 | 静态 | 数组 | 备 注 | Http | WinHttpR | | | Return | 文本型 | | | 正则 | 正则表达式 | | | Header | 文本型 | | | Data | 文本型 | | | sign | 文本型 | | | websignkey | 文本型 | | | signs | 文本型 | | | Json | 类_json | | | Origin | 文本型 | | |
Http. Open (“GET”, Url, )Http. SetRequestHeaders (“User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”)Http. Send ()如果真 (Http. GetStatus () = 301 )Url = Http. GetResponseLocation ()Http. Open (“GET”, Url, )Http. SetRequestHeaders (“User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”)Http. Send ()Return = Http.GetResponseText_old ()Origin = 文本_取左边 (Url, “/” + 文本_取右边 (Url, “/”, , ), , )如果 (寻找文本 (Return, “输入密码”, , 假) ≠ -1 )如果真 (Pwd = “”)返回 (“请输入密码”)sign = 文本_取出中间文本 (Return, “skdklds = '”, “';”, , )Data = “action=downprocess&sign=” + sign + “&p=” + Pwd Http. Open (“POST”, Origin + “/ajaxm.php”, )Header = “Accept: application/json, text/javascript, */*” + #换行符 + “Content-Type: application/x-www-form-urlencoded” + #换行符 + “Host: pan.lanzoui.com” + #换行符 + “Origin: ” + Origin + #换行符 + “Referer: ” + Url + #换行符 + “User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”Http. SetRequestHeaders (Header )Http. Send (Data )Return = Http. GetResponseText_old ()正则. 创建 (“src=” + #引号 + “(.*?)” + #引号, , , )正则. 搜索全部 (Return )Url = 文本_取左边 (Url, “/” + 文本_取右边 (Url, “/”, , ), , ) + 正则. 取子匹配文本 (2, 1 )Http. Open (“GET”, Url, )Http. SetRequestHeaders (“User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”)Http. Send ()Return = Http. GetResponseText_old ()sign = 文本_取出中间文本 (Return, “sign':'”, “','”, , )websignkey = 文本_取出中间文本 (Return, “aihidcms = '”, “';”, , )signs = 文本_取出中间文本 (Return, “ajaxdata = '?”, “';”, , )Data = “action=downprocess&signs=%3F” + signs + “&sign=” + sign + “&websign=&websignkey=” + websignkey + “&ves=1”Http. Open (“POST”, “https://pan.lanzoui.com/ajaxm.php”, )Header = “Accept: application/json, text/javascript, */*” + #换行符 + “Content-Type: application/x-www-form-urlencoded” + #换行符 + “Host: pan.lanzoui.com” + #换行符 + “Origin: ” + Origin + #换行符 + “Referer: ” + Url + #换行符 + “User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”Http. SetRequestHeaders (Header )Http. Send (Data )Return = Http. GetResponseText_old ()Json.解析 (Return, , )如果真 (到整数 (Json. 取通用属性 (“zt”, )) = 0 )返回 (Json. 取通用属性 (“inf”, )) Http.Open (“GET”, Json.取通用属性 (“dom”, ) + “/file/” + Json.取通用属性 (“url”, ), )Http. SetRequestHeaders (“Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6”)Http. SetRequestHeaders (“User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”)Http. Send ()返回 (Http. GetResponseLocation ())
蓝奏云解析.e
(1.04 MB, 下载次数: 149)
|