You can try a requests based extract. The code below worked for me
Just substitute in your URL, KEY and the ID numbers
Not as easy as using the python canvasapi module, but the data comes in as a python dictionary nonetheless
import os
import requests
import json
URL1 = r'https://XXXXXXX.instructure.com/api/v1/courses'
course_id = 99999
assignment_id = 99999
url2 = f'{URL1}/{course_id}/assignments/{assignment_id}/submissions?include[]=submission_history'
header = {'Authorization': 'Bearer ' + '%s' % KEY}
r = requests.get(url2, headers= header)
print('Request status code',r.status_code)
a = r.json()
for x in a:
print(x['id'],x['user_id'])
print(x['submission_history'])
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.