Sha256: 425a36530fa80b2c0dcd8ea8505e6cef9aec3e791d2e5e3566b4a2f8080bc1b4
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
copyscape ========= Ruby wrapper for the Copyscape API. [](https://travis-ci.org/bvandenbos/copyscape-rb) Usage ----- First, you'll need to setup your [Copyscape](http://www.copyscape.com/) account and whatnot. You can do that [here](http://www.copyscape.com/signup.php?pro=1&o=f). Next, install the gem. $ gem install copyscape And then you can do things like this... ```ruby 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 ``` 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. License ------- See [LICENSE](LICENSE)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
copyscape-0.0.6 | README.md |