位置:middlewares.py文件中 一、爬虫中间件 二、下载中间件 1、位置:引擎和下载器之间 2、作用:批量拦截到整个工程中所有的请求和响应 3、拦截请求: UA伪装:写在process_request方法中 # UA池 user_agent_list = [ "Mozilla/5.0 (W ...
分类:
其他好文 时间:
2020-05-29 21:06:58
阅读次数:
90
am335x uboot guide http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#u-boot-user-s-guide am335x ...
分类:
其他好文 时间:
2020-05-29 17:52:56
阅读次数:
63
https://www.cnblogs.com/me80/p/7218883.html 安装步骤:1、使用putty或类似的SSH工具登陆VPS或服务器; 登陆后运行:screen -S lnmp如果提示screen: command not found 命令不存在可以执行:yum install ...
分类:
其他好文 时间:
2020-05-29 17:39:41
阅读次数:
69
springboot项目启动的时候可以直接使用java -jar xxx.jar这样。下面说说参数的一些讲究 1.-DpropName=propValue的形式携带,要放在-jar参数前面 eg:java -Dxxx=test -DprocessType=1 -jar xxx.jar 取值:Syst ...
分类:
编程语言 时间:
2020-05-29 13:40:21
阅读次数:
53
rabbit-mq学习1:基本概念和快速入门 一、什么是MQ 消息队列(Message Queue,简称MQ)本质是个队列,遵循先入先出,主要用途:不同进程Process/线程Thread之间通信 。 可以用来在两个进程间进行异步的数据交换。进程A把消息放入消息队列中,然后继续执行后续任务;进程B从 ...
分类:
其他好文 时间:
2020-05-29 09:30:14
阅读次数:
59
Ubuntu系统安装软件时报以下错误: E: Sub-process /usr/bin/dpkg returned an error code (1) 解决: mv /var/lib/dpkg/info /var/lib/dpkg/info_old mkdir /var/lib/dpkg/info ...
分类:
系统相关 时间:
2020-05-28 20:06:50
阅读次数:
78
What is ulimit? It is a number of open file descriptors per process. They can all refer to the same file, or different files. It prevent single users ...
分类:
系统相关 时间:
2020-05-28 19:31:10
阅读次数:
83
; -webkit-tap-highlight-color: transp ...
分类:
移动开发 时间:
2020-05-28 13:00:37
阅读次数:
87
from Queue import Queue qlist=Queue(maxsize=300) import threading for i in range(20): qlist.put("hello num%d" %(i)) def process_work(qlist): while Tru ...
分类:
编程语言 时间:
2020-05-28 00:58:28
阅读次数:
61