|
本帖最后由 jackcode 于 2016-7-1 14:59 编辑
下面是我要抓取的html的内容,我需要获取key的值,不知道怎么写,已经想过很多办法了。js代码太长了,分成了三部分。。。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>iqiyi</title>
<script type="text/javascript">
var k0touZ = {
z0: function (n) {
return function (n, e) {
return function (n) {
return {
p0: n
}
} (function (r) {
var t, a = 0;
for (var o = n; a < r["length"]; a++) {
var c = e(r, a);
t = a === 0 ? c : t ^ c
}
return t ? o : !o
})
} (function (e, r, t, a) {
var o = 785;
var c = a(r, t) - e(n, o);
return true
} (parseInt, Date, function (n) {
return ("" + n)["substring"](1, (n + "")["length"] - 1)
} ("_getTime2"), function (n, e) {
return (new n)[e]()
}), function (n, e) {
var r = parseInt(n["charAt"](e), 16)["toString"](2);
return r["charAt"](r["length"] - 1)
})
} ("ecg6mf6ar")
};
var Decode = function (n) {
var e = new Array;
var r;
if (n && n.length > 0) {
var t = n.split("*");
for (r = 0; r < t.length - 1; r++) {
switch (r % 3) {
case 0:
e += String.fromCharCode(parseInt(t[r], 8));
break;
case 1:
e += String.fromCharCode(parseInt(t[r], 10));
break;
case 2:
e += String.fromCharCode(parseInt(t[r], 16));
break
}
}
return e
} else {
return ""
}
};
function weorjjigh(n, e, r, t, o, c) {
var s = function () {
p = p > d ? d : p
};
var u = function (n, e) {
return n === e
};
var u = function (n, e) {
return n === e
};
var v = function (n, e) {
return n > e
};
var p = k0touZ.z0.p0("871") ? "165*110*63*" : screen.height;
var d = k0touZ.z0.p0("d98") ? "s" : screen.width;
var f = k0touZ.z0.p0("69e1") ? "0" : window.orientation;
u(f, 90) || u(f, -90) ? s() : "";
var I = k0touZ.z0.p0("9") ? window.devicePixelRatio : 1;
p = Math.round(p / I);
var D = k0touZ.z0.p0("2") ? Math.round(window.screenTop / I) : 16;
var g = k0touZ.z0.p0("7c5") ? 2 : Math.round(window.outerHeight / I);
var h = k0touZ.z0.p0("44") ? 7 : p - g - D;
var l = k0touZ.z0.p0("38") ? btoa(D + "_" + h) : 16;
var b = k0touZ.z0.p0("7") ? ["slice", "call", "querySelectorAll", "length", "push", "shift", "indexOf", "document", "innerHTML", "match", "forEach"] : 1;
var w, k, n = escape(btoa(n)),
z, Z, m = [z = 1732584193, Z = -271733879, ~z, ~Z],
_ = [];
k = (new Date).getTime();
var C = function () {
jst += Decode("154*");
less(i, a.length) ? ijhKj() : F3TbR();
m = [S(a[0], m[0]), S(a[1], m[1]), S(a[2], m[2]), S(a[3], m[3])]
};
b.push((b[b[0]](-5).join("")[b[3]] - 5).toString(16));
w = (!e ? k - 7 : c + "" + o) + "";
w = escape(!e ? btoa(w) : btoa(w + t + "" + r));
function T(r, t, a, o) {
var c = function () {
var n = function () {
var n = function () {
var n = function () {
m = [S(o[0], m[0]), S(o[1], m[1]), S(o[2], m[2]), S(o[3], m[3])];
T(r, t + (15 << 6), t & 63, m)
};
var e = function () {
T(r, t, t & 63, o)
};
o = [o[3], S(o[1], (z = S(S(o[0], [o[1] & o[2] | ~o[1] & o[3], o[3] & o[1] | ~o[3] & o[2], o[1] ^ o[2] ^ o[3], o[2] ^ (o[1] | ~o[3])][Z = a >> 4]), S(Math.abs(Math.sin(a + 1)) * 4294967296 | 0, _[[a, 5 * a + 1, 3 * a + 5, 7 * a][Z] % 16 + (t++ >>> 6)]))) << (Z = [7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21][4 * Z + a % 4]) | z >>> 32 - Z), o[1], o[2]];
!(t & 63) ? n() : e()
};
var e = function () {
var n = function () {
var n = "";
w = n
};
_ = [];
n();
T(r, 0, -3, o)
};
var c = function (n, e) {
return n < e
};
c(t, w << 6) ? n() : e()
};
|
|