月份:2018年9月

shell中获取进程相关信息

No Picture

一、获取当前运行的进程pid pid=$$ #表示当前进程号 二、获取当前子…

Read More »

RabbitMQ -使用中遇到的问题记录

No Picture

一、遇到连接自动断开 报错 Connection reset by peer…

Read More »

python logging的使用

No Picture

一、logging.basicConfig函数与常用格式 import lo…

Read More »

Scrapy-控制爬虫行为-抓取,中间件,启停等

No Picture

一、在爬虫自动控制爬虫停止: 在爬虫代码中执行: self.crawler….

Read More »

【RabbitMQ】普通消费模式,三种Exchange模式——订阅、路由、通配符模式

No Picture

普通模式: 普通模式正常的生产者和消费者模式,又分为简单模式Hello Wo…

Read More »

阿里云服务器运维记录

No Picture

    常用命令:    关闭防火墙:  systemctl stop fi…

Read More »

Scrapy – 动态配置启动爬虫

No Picture

可以利用scrapy提供的核心API通过编程方式启动scrapy,代替传统的…

Read More »

Python学习之问题记录

No Picture

一、__init__.py的作用 当需要加载自定义的目录下所有文件时,让该目…

Read More »

Scrapy使用中的问题记录

No Picture

一、xpath.extract()返回的都是unicode编码问题 例如,提…

Read More »

MongoDb 执行查询时注意事项

No Picture

前几日,实现了两中mongodb的基础工具,一种是基于MongoClient…

Read More »