https://github.com/andreimarcu/scholarretriever
Simple script that retrieves Scholar resources in a local folder.
https://github.com/andreimarcu/scholarretriever
Last synced: about 1 year ago
JSON representation
Simple script that retrieves Scholar resources in a local folder.
- Host: GitHub
- URL: https://github.com/andreimarcu/scholarretriever
- Owner: andreimarcu
- Created: 2014-08-26T16:52:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-06T21:06:35.000Z (over 11 years ago)
- Last Synced: 2025-01-22T22:31:28.358Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 168 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Scholar Retriever
=========
Simple script that retrieves Scholar resources in a local folder.
Requirements
------------
* Python 2.6+
* easywebdav
Usage
-----
* Clone this repository
* ```pip install -r requirements.txt```
* Copy config.example.py to config.py and edit to your liking
* Run ```python scholarretriever.py ```
Config
------
* username: Your hokie PID
* password: if you leave it as such you will be securely prompted for it
* path: where to download the resources
* verbose: whether to print retrieved/skipped files or not (useful if used as a cronjob)
* classes: a list of a tuple of class names and scholar site ids to retrieve
FAQ
---
* Where do I find the scholar site id?
For every scholar site you can either find it in the URL:
```https://scholar.vt.edu/portal/site/2cc328f0-1f60-4a25-a007-dcf859335706/``` where the site id is 2cc328f0-1f60-4a25-a007-dcf859335706
Or you can find it by clicking on "Upload-Download Multiple Resources" in the Resources tab.
Known Issues
------------
Right now a file is only downloaded if it does not exist locally, meaning that if an instructor changes a file with the same filename, you will have to delete it locally first, then run the script again.
Author
-------
Andrei Marcu
http://andreim.net/