zapnap/serpentor
语言: Ruby
git: https://github.com/zapnap/serpentor
简单的SERP /搜索引擎关键字排名检查器
Simple SERP / search engine keyword rank checker
README.md (中文)
Serpentor
用于检查给定关键字集的搜索引擎结果排名的简单实用程序。 目前仅支持Google搜索。
安装
将此行添加到应用程序的Gemfile:
gem 'serpentor'
然后执行:
$ bundle
或者自己安装:
$ gem install serpentor
用法
运行单个关键字测试:
rank = Serpentor::Rank.check('SOSV', 'sosv.com')
puts "Rank is #{rank.value} (#{rank.url})"
或者配置批量关键字测试:
config = Serpentor.configure do |config|
config.keywords = ["keyword1", "keyword2"]
config.host = "my-site.com"
config.limit = 10 # only care if result is on first page
end
results = Serpentor.rank
results.each do |res|
puts "Rank for '#{res.keyword}' is #{res.rank || 'N/A'} (#{res.url})"
end
默认情况下会检查前5页(50个结果)。你可以进一步限制 例如,如果您只关心第一页结果,那么这个数字。
特约
- 叉吧(https://github.com/[my-github-username]/serpentor/fork)
- 创建您的功能分支(git checkout -b my-new-feature)
- 提交你的更改(git commit -am'添加一些功能')
- 推送到分支(git push origin my-new-feature)
- 创建一个新的Pull请求
本文使用googletrans自动翻译,仅供参考, 原文来自github.com
en_README.md
Serpentor
Simple utility to check search engine result rankings for a given set of keywords.
Right now only Google search is supported.
Installation
Add this line to your application's Gemfile:
gem 'serpentor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install serpentor
Usage
Run an individual keyword test:
rank = Serpentor::Rank.check('SOSV', 'sosv.com')
puts "Rank is #{rank.value} (#{rank.url})"
Or configure a bulk keyword test:
config = Serpentor.configure do |config|
config.keywords = ["keyword1", "keyword2"]
config.host = "my-site.com"
config.limit = 10 # only care if result is on first page
end
results = Serpentor.rank
results.each do |res|
puts "Rank for '#{res.keyword}' is #{res.rank || 'N/A'} (#{res.url})"
end
The first 5 pages (50 results) are checked by default. You can further limit
that number, for example, if you only care about first page results.
Contributing
- Fork it ( https://github.com/[my-github-username]/serpentor/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request