An open API service indexing awesome lists of open source software.

https://github.com/w-zengtao/rb-spider

基于 RabbitMQ 中间件的爬虫的 Ruby 实现 [Developing]
https://github.com/w-zengtao/rb-spider

rabbitmq redis ruby spider

Last synced: over 1 year ago
JSON representation

基于 RabbitMQ 中间件的爬虫的 Ruby 实现 [Developing]

Awesome Lists containing this project

README

          

# Spider
[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability) [![codebeat badge](https://codebeat.co/badges/28939564-2b04-4d35-8640-984adf16290d)](https://codebeat.co/projects/github-com-w-zengtao-rb-spider-master) [![Build Status](https://www.travis-ci.org/w-zengtao/rb-spider.svg?branch=master)](https://www.travis-ci.org/w-zengtao/rb-spider)

## Docs
* [EN](https://github.com/w-zengtao/rb-spider/blob/master/docs/README_CN.md)
* [中文](https://github.com/w-zengtao/rb-spider/blob/master/docs/README_CN.md)

## Install

```bash
gem install spider -s https://github.com/w-zengtao/rb-spider
```

## Development
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## What I am doing ...

* Confused by how to design the `Timer`

```ruby
# it seems that this is not a good way

def interval seconds
loop do
sleep seconds
end
end

interval do
puts 'the code'
end
```

```ruby
# And then use a thread to polling redis seems good
```

* Create the `Task` class to extend our mission

By every commit, I record my thinking about evolution of this gem