Skip to content

(⚠️DISCONTINUED⚠️) PoC Page Stitcher Image Manipulation Tool

License

Notifications You must be signed in to change notification settings

kdzyoda/CourseHeroUnblur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CourseHeroUnblur

Download unblurred CourseHero documents as searchable PDFs


How it works

This tool gathers all the avaliable previews of a document in CourseHero, then uses image manipulation to identify and switch together the unblurred parts of each page to recreate the file behind the paywall. These images are then (optionally) upscaled and saved to a OCR-scanned searchable PDF file.

In Action

preview.mp4

Installation

Tested on Python 3.8.9

Pip packages

Install using requirements.txt:

pip install -r requirements.txt

Other third-party dependencies

Optional dependenices for selectable text in PDF (add to PATH):

Using Chocolatey

Using chocolatey, you can install these dependencies by running the following command as admin:

choco install ghostscript tesseract-ocr -y

Usage

CLI

Command line arguments:

usage: CourseHeroUnblur.py [-h] -l URL [-o OUTPUT] [-n] [-s] [-p PAGES] [--open] [--debug]

Bypass the coursehero paywall

optional arguments:
  -h, --help            show this help message and exit
  -l URL, --url URL     The coursehero url to bypass
  -o OUTPUT, --output OUTPUT
                        Output file (default file name from CourseHero)
  -n, --no-ocr          Don't scan PDF with OCR, won't break without GhostScript and Tesseract
  -s, --sharpen         Sharpens the image for better OCR output (makes images grayscale)
  -p PAGES, --pages PAGES
                        Specify a page range (example: 1,2,3-5)
  --open                Opens the PDF in the default web browser
  --debug               Show error traceback

Disclaimer

The purpose of this program is to provide an example of asynchronous webscraping and data gathering in Python. I am not responsible for any misuse of this tool. This tool was created strictly for educational purposes only.

About

(⚠️DISCONTINUED⚠️) PoC Page Stitcher Image Manipulation Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%