No commit activity in last 3 years
No release in over 3 years
Simple and easy way to use Copyscape API from Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 10.0
>= 3.2.0

Runtime

>= 0.15.0
>= 1.8.0
 Project Readme

copyscape

Ruby wrapper for the Copyscape API.

Usage

First, you'll need to setup your Copyscape account and whatnot. You can do that here. API documentation here.

Next, install the gem.

$ gem install copyscape

And then you can do things like this...

Copyscape.username = 'yourname'
Copyscape.api_key = 'abc123'

# URL search
search = Copyscape.url_search("http://www.copyscape.com/example.html")
search.duplicate? # => true
search.count # => 81
search.duplicates.each do |duplicate|
  puts duplciate['title']
  puts duplicate['url']
  puts duplicate['textsnippet']
  puts duplicate['htmlsnippet']
  puts duplicate['minwordsmatched']
end

# Text search
search = Copyscape.text_search('This is some text I want to check for plagurism')
search.duplicate? # => false

# Search with additional options
Copyscape.text_search('This is some text I want to check for plagurism', :x => 1, :c => 5)

Currently, there is no support in the gem for "private index" searching, though it would be pretty easy to add.

More...

I'm in no way associated with Copyscape.