thatarchguy / canvas-rip Goto Github PK
View Code? Open in Web Editor NEWCanvas LMS rip script
License: Other
Canvas LMS rip script
License: Other
Edit: Regenerated the API Key and it works until:
For class: 188920
Traceback (most recent call last):
File "crip.py", line 19, in
classfiledir = apiObj.allPages('courses/'+str(classid)+'/files')
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 241, in allPages
for pg in self.pages(url, absoluteUrl, verbose):
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 181, in pages
resp = self.callAPI(url, absoluteUrl, verbose)
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 297, in callAPI
return urlopen(req)
File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 461, in open
response = meth(req, response)
File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.4/urllib/request.py", line 499, in error
return self._call_chain(_args)
File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
result = func(_args)
File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Authorization Required
Here is the output of the script:
root@ubuntu:/home/matt/canvas-rip# python3 crip.py
For class: 56527
Grabbing : cc_logo.jpg for COR-310-01
Grabbing : COR+310+-+Technology+and+Development+-+Fall+2013.doc for COR-310-01
Grabbing : COR+310+-+Technology+and+Development+-+Fall+2013.pdf for COR-310-01
Grabbing : COR_310_literature_review_instruction_handout+Fall+2013.doc for COR-310-01
Grabbing : Gated+Globe.pdf for COR-310-01
For class: 56548
Traceback (most recent call last):
File "crip.py", line 19, in
classfiledir = apiObj.allPages('courses/'+str(classid)+'/files')
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 241, in allPages
for pg in self.pages(url, absoluteUrl, verbose):
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 181, in pages
resp = self.callAPI(url, absoluteUrl, verbose)
File "/home/matt/canvas-rip/canvaslms/api/init.py", line 297, in callAPI
return urlopen(req)
File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 461, in open
response = meth(req, response)
File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.4/urllib/request.py", line 499, in error
return self._call_chain(_args)
File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
result = func(_args)
File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Authorization Required
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.