Master和sleeve之间需要协作通信,而实现协作通信需要用到jsonRPC,在网上看了一些这方面的内容,一、需要安装jsonrpc-scrapy二、在程序中导入相应的包三、协作通信主要是通过http来实现现在有一个master,多个sleeve,master相当于服务器,而sleeve相当于爬虫的节点,来实现具体的爬虫任务。分布式实现涉及任务的调度,以及任务的分配,但整体还是不太清楚协作通信是如何实现的
I’ve been learning this recently, but I haven’t achieved distributed implementation yet.
Up to google搜索了一下,恰巧也用到了redis, I was also asked this question during the interview before.
google
redis
Refer to these two blog posts, I hope it will be helpful to you. I feel that the first one is more referenceable.
A distributed web crawler implemented using scrapy, redis, and mongodb
How to get started with Python crawler?
I’ve been learning this recently, but I haven’t achieved distributed implementation yet.
Up to
google
搜索了一下,恰巧也用到了redis
, I was also asked this question during the interview before.Refer to these two blog posts, I hope it will be helpful to you. I feel that the first one is more referenceable.
A distributed web crawler implemented using scrapy, redis, and mongodb
How to get started with Python crawler?