Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joeyh021/paperscraper
Automatically download all PDFs from The University of Warwick's past paper site.
https://github.com/joeyh021/paperscraper
Last synced: about 2 months ago
JSON representation
Automatically download all PDFs from The University of Warwick's past paper site.
- Host: GitHub
- URL: https://github.com/joeyh021/paperscraper
- Owner: Joeyh021
- Created: 2021-06-29T15:27:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T00:38:00.000Z (over 3 years ago)
- Last Synced: 2023-03-06T04:01:46.231Z (almost 2 years ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PaperScraper
This is a quick python script to automatically download all PDFs from The University of Warwick's past paper site.
## Usage
You'll need to provide an SSO token from a cookie so the script can access the page. Sign into warwick.ac.uk/pastpapers, and make sure you set the sign in settings to remember you.
Next open devtools, and navigate to the storage tab. There you should be able to find your cookies for this site. You want with one with the key `WarwickSSO`. Copy the value of it, and assign it to the constant `COOKIE_TOKEN` in the script.
By default the url points to all DCS past papers for all years. You can change this by navigating to the page you want the papers from, and changing the `URL` parameter at the top of the script.
The papers are organised by year. If you want to make a PR to organise them by module or some other way feel free.
## Disclaimer
This script is provided for personal use only. Downloaded papers may not be shared with anyone, even other students. I am not responsible for anything you do with this script, nor anything you do with the files you download using it.
> These papers are provided for private study purposes only. You may print them, but must not distribute them, in any form, even to other students.