当前位置:   article > 正文

python爬虫 拼多多_拼多多爬虫之anti_content分析

python anti-content

首先来看抓包:

查找相关的代码:

this.request = function() {

var e, t = (e = c.a.mark(function e(t) {

var n, o, a, i, s, l;

return c.a.wrap(function(e) {

for (; ; )

switch (e.prev = e.next) {

case 0:

return n = t.requestContext,

o = void 0 === n ? {} : n,

e.next = 4,

Ot.a.getAntiContent();

case 4:

(a = e.sent) && (r.antiContent = a);

case 6:

return r.formatRequestParams(),

e.prev = 7,

e.next = 10,

Object(wt.a)({

req: o.__req,

path: "search",

params: r.requestModelParams

}).get();

case 10:

if (e.t0 = e.sent,

e.t0) {

e.next = 13;

break

}

e.t0 = {};

case 13:

return i = e.t0,

s = kt(i, {

sort: r.sortType,

page: r.searchPageIndex

}) || {},

l = r.successLoggerParams(i),

r.trackingSearchEvent(l),

s.loadSearchResultTracking = l,

s.firstFilter = r.requestModelParams.filter || "",

r.flip = i.flip,

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号