get_homework_material
Fetch complete homework material content and absolute attachment URLs from an EduPage superid to read assignment details the timeline summary omits.
Instructions
Full body text and attachment list of one homework/assignment material. Read-only.
Fetches the school's material-player page for superid and flattens its
widget tree into plain text plus absolute attachment URLs — the timeline
notification carries only a short summary, never the assignment body or the
attachment list, so this is the only way to read what the assignment says.
Args:
superid: Material id, taken from additional_data.superid of a
notification returned by get_timeline(category='homework').
subdomain: School whose session to use (defaults to the active subdomain).
Returns:
dict: {'subdomain', 'superid', 'title', 'details', 'date_from',
'date_to', 'content', 'attachments'}. Each attachment is
{'name', 'url'} with an absolute URL — hand url to
download_attachment to save it.
Notes:
- Discover ids first: get_timeline(category='homework') (or
category='assignments') and read additional_data.superid. For a
whole day of homework plus everything else prefer get_day_summary.
- An invalid, expired or invisible id returns an actionable error, not a
stack trace.
- content is plain text; an enabled student upload area is rendered
as '[Student answer / file upload area]'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| superid | Yes | ||
| subdomain | No |