js & anti craw & crawler spam
js & anti craw & crawler spam
demo &
X-Sign




    , function(t, e, n) {
        "use strict";
        var r = n(126)
          , o = n.n(r)
          , i = "WSUDD"
          , a = "X"
          , s = "/fe_api/";
        e.a = {
            name: "crawler-spam",
            install: function(t, e) {
                e.isBrowser && e.http.interceptors.dispatch.use(function(t) {
                    return t.url.indexOf(s) > -1 && (t.headers["X-Sign"] = function(t, e) {
                        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : a
                          , r = t.url
                          , u = void 0 === r ? "" : r
                          , c = t.params
                          , f = t.paramsSerializer;
                        return u = u.slice(u.indexOf(s), u.length),
                        n === a ? "" + n + o()(e(u, c, f) + i) : ""
                    }(t, e.http.buildURL)),
                    t
                })
            }
        }
    }
- step 1: find crawler spamjs file name & get json data
js & XHR
- open sources, set break points
js files
- debug, find the logic
step by step, look for the roots(溯源)
- mock / fake, craw datas
blogs
crawler-spam
https://www.xiaohongshu.com/page/hot
https://www.xiaohongshu.com/explore
https://www.edificeautomotive.com/blog/2016/02/26/ghost-and-crawler-spam/
referral exclusion list
https://support.google.com/analytics/answer/2795830?hl=en
Referral exclusions & 推荐排除
hack methods
github
https://github.com/topics/xiaohongshu
https://github.com/lonngxiang/xiaohongshu-spider
https://github.com/vinchu/xiaohongshu-2
https://github.com/No-bb-just-do-it/xiaohongshu
npm
pm formula-static/@xhs/launcher
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
js & anti craw & crawler spam的更多相关文章
- Python爬虫学习之爬美女图片
		最近看机器学习挺火的,然后,想要借助业余时间,来学习Python,希望能为来年找一份比较好的工作. 首先,学习得要有动力,动力,从哪里来呢?肯定是从日常需求之中来.我学Python看网上介绍.能通过P ... 
- 打包python脚本为exe的坎坷经历, by pyinstaller方法
		打包python脚本为exe的坎坷经历, by pyinstaller方法 又应验了那句歌词. 不经历风雨, 怎么见得了彩虹. 安装过程略去不提, 仅提示: pip install pyinstall ... 
- 使用Node.js搭建数据爬虫crawler
		0. 通用爬虫框架包括: (1) 将爬取url加入队列,并获取指定url的前端资源(crawler爬虫框架主要使用Crawler类进行抓取网页) (2)解析前端资源,获取指定所需字段的值,即获取有价值 ... 
- 基于Node.js的爬虫工具 – Node Crawler
		Node Crawler的目标是成为最好的node.js爬虫工具,目前已经停止维护. 我们来抓取光合新知博客tech栏目中的文章信息.访问http://dev.guanghe.tv/category/ ... 
- cnblogs blogs backup & node.js crawler
		cnblogs blogs backup & node.js crawler refs xgqfrms 2012-2020 www.cnblogs.com 发布文章使用:只允许注册用户才可以访 ... 
- jQuery验证控件jquery.validate.js使用说明
		官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation jQuery plugin: Validation 使用说明 转载 ... 
- jquery.validate.js插件使用
		jQuery验证控件jquery.validate.js使用说明+中文API 官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-valid ... 
- jquery.validate.js表单验证
		一.用前必备官方网站:http://bassistance.de/jquery-plugins/jquery-plugin-validation/ API: http://jquery.bassist ... 
- 区分PC端与移动端代码,涵盖C#、JS、JQuery、webconfig
		1)C#区分PC端或移动端 using System.Text.RegularExpressions string u = Request.ServerVariables["HTTP_USE ... 
随机推荐
- 《Effective C#》之减少装箱和拆箱
			<Effective C#>之减少装箱和拆箱_天极网 http://dev.yesky.com/msdn/359/3486359.shtml <Effective C#>之减少 ... 
- PAT甲级1056Mice and Rice
			目录 题目介绍 题解 解题思路 代码 参考链接 题目介绍 题目链接 https://pintia.cn/problem-sets/994805342720868352/problems/9948054 ... 
- exkmp(Z函数) 笔记
			exkmp 用于求解这样的问题: 求文本串 \(T\) 的每一个后缀与模式串 \(M\) 的匹配长度(即最长公共前缀长度).特别的,取 \(M=T\),得到的这个长度被称为 \(Z\) 函数.&quo ... 
- React-Router browserHistory浏览器刷新出现页面404解决方案
			在React项目中我们经常需要采用React-Router来配置我们的页面路由,React-Router 是建立在 history 之上的,常见的history路由方案有三种形式,分别是: 1.has ... 
- Spring cloud-Bus (消息总线)
			<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring ... 
- Java编程工具IDEA的使用
			IDEA psvm + Enter 快速构建main方法 sout + Enter 快速打印与句 Ctrl+Shift + Enter,语句完成 Ctrl+F12,可以显示当前文件的结构 Ctrl + ... 
- mysql高级day1
			Mysql高级-day01 MySQL高级课程简介 序号 Day01 Day02 Day03 Day04 1 Linux系统安装MySQL 体系结构 应用优化 MySQL 常用工具 2 索引 存储引擎 ... 
- SOLID:面向对象设计的五个基本原则
			在程序设计领域,SOLID 是由罗伯特·C·马丁在 21 世纪早期引入的记忆术首字母缩略字,指代了面向对象编程和面向对象设计的五个基本原则.当这些原则被一起应用时,它们使得一个程序员开发一个容易进行软 ... 
- ProBuilder快速原型开发技术 ---操作基础
			本篇文章笔者对ProBuilder(以下简称:PB),进行操作基础的介绍. 一:PB大小图标显示方式 PB操作面板有两种显示方式:小图标与大图标.大图标优点是显示清晰操作方便,缺点是没有更加精确的参数 ... 
- C++ Socket 入门
			Socket 入门 前置知识 :计算机网络基础(TCP/IP四层模型) Socket 原意是"插座",在计算机通信领域被翻译为"套接字",以\(\{IP:Por ... 
