Sha256: 76153a1444280145996a5e2eb80db1e96df971fca8f91f46b95b2432715ded23

Contents?: true

Size: 984 Bytes

Versions: 51

Compression:

Stored size: 984 Bytes

Contents

# HttpCrawler

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/http_crawler`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'http_crawler'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install http_crawler


## 示例:百度爬虫维护


### 通过对象调用

```ruby
client = HttpCrawler::Client::Baidu::Client.new
client.index  # 抓取首页
```

### 通过别名调用
```ruby
client = HttpCrawler::Client.for("baidu") # 
client.index   # 抓取首页
```


## 示例:测试API


### 通过对象调用

```ruby
client = HttpCrawler::Proxy::TestProxyApi::Client.new
```

### 通过别名调用
```ruby
client = HttpCrawler::Proxy.for("test_proxy_api") # 
```

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
http_crawler-0.3.2.12 README.md
http_crawler-0.3.2.11 README.md
http_crawler-0.3.2.10 README.md
http_crawler-0.3.2.9 README.md
http_crawler-0.3.2.8 README.md
http_crawler-0.3.2.7 README.md
http_crawler-0.3.2.6 README.md
http_crawler-0.3.2.5 README.md
http_crawler-0.3.2.4 README.md
http_crawler-0.3.2.3 README.md
http_crawler-0.3.2.2 README.md
http_crawler-0.3.2.1 README.md
http_crawler-0.3.2.0 README.md
http_crawler-0.3.1.31 README.md
http_crawler-0.3.1.30 README.md
http_crawler-0.3.1.29 README.md
http_crawler-0.3.1.28 README.md
http_crawler-0.3.1.27 README.md
http_crawler-0.3.1.26 README.md
http_crawler-0.3.1.25 README.md