0.0
A long-lived project that still receives updates
初级开发工程师,基于 http 写的爬虫扩展包。请不要随意下载里面有很多坑。
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.8

Runtime

~> 0.2.1
~> 4.4, >= 4.4.1
~> 1.8
~> 1.8
 Project Readme

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:

gem 'http_crawler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install http_crawler

示例:百度爬虫维护

通过对象调用

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

通过别名调用

client = HttpCrawler::Client.for("baidu") # 
client.index   # 抓取首页

示例:测试API

通过对象调用

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

通过别名调用

client = HttpCrawler::Proxy.for("test_proxy_api") #