Automatically completes activities on Zybooks, with ability to vary time between answer submission.
Requires requests library which can be installed using:
pip install requests
NOTE: This repository is no longer actively maintained. If you encounter any issues feel free to open a merge request and I will review it.
Fixed the "Ill-formatted request" error by updating how the script handles authentication. The Zybooks API no longer accepts the auth_token as a query parameter for GET requests. It now needs to be in the Authorization header.
Changes:
- ZybookAuto.py: Updated
signinto pullauth_tokenand set a globalAuthorization: Bearer <token>header on the session. - GET Requests: Updated
get_books,get_chapters, andget_problemsto remove deprecated query parameters. - Compatibility: POST requests still include the token in the body for legacy support. Using the session header for authentication.