|
今日头条AS算法大揭秘
开始采集吧!!!
- function(t) {
- var e = {};
- e.getHoney = function() {
- var t = Math.floor((new Date).getTime() / 1e3),
- e = t.toString(16).toUpperCase(),
- n = md5(t).toString().toUpperCase();
- if (8 != e.length) return {
- as: "479BB4B7254C150",
- cp: "7E0AC8874BB0985"
- };
- for (var o = n.slice(0, 5), i = n.slice( - 5), a = "", r = 0; 5 > r; r++) a += o[r] + e[r];
- for (var l = "",
- s = 0; 5 > s; s++) l += e[s + 3] + i[s];
- return {
- as: "A1" + a + e.slice( - 3),
- cp: e.slice(0, 3) + l + "E1"
- }
- },
- t.ascp = e
- } (window, document)
复制代码
|
|