Copyleaks SDK is a simple framework that allows you to scan textual content for plagiarism and trace content distribution online, using the Copyleaks plagiarism checker cloud.
Detect plagiarism using Copyleaks SDK in:
- Online content and webpages
- Local and cloud files (see supported files)
- Free text
- OCR (Optical Character Recognition) - scanning pictures with textual content (see supported files)
Supported Python version: 3.
You have two ways to integrate with the Copyleaks SDK:
- Recommended - Use the Python Package Manager - PiPy.
When integrating this way you will automatically be able to update the SDK to its latest version:pip3 install copyleaks
- Download the code from this repository and add it to your project.
To use the Copyleaks SDK you need to have a Copyleaks account. The registration to Copyleaks is free of charge and quick. Signup and confirm your account to finalize your registration.
Now, generate your personal API key on your dashboard (Businesses dashboard/Academic dashboard/Websites dashboard) under 'Access Keys'.
For more information check out our API guide.
Main.py will show you how to scan for plagiarism in the URL: 'http://python.com'. All you have to do is to update the following line with your email and API key:
from copyleaks.copyleakscloud import CopyleaksCloud from copyleaks.product import Product cloud = CopyleaksCloud(Product.Academic, 'YOUR_EMAIL_HERE', 'YOUR_API_KEY_HERE')# You can change the product.
This example shows how to scan a URL using the line:
process = cloud.createByUrl('http://python.com', options)
You can change 'createByURL' with 'createByFile' to scan local files:
process = cloud.createByFile('test.txt', options)
or with 'createByOCR to scan local images containing text:
process = cloud.createByOcr('ocr-example.jpg', eOcrLanguage.English, options)
pip3 install requests pip3 install python-dateutil pip3 install enum34