A Python script to collect, organize, and merge files from Canvas classes/modules into a singular PDF file.
- Fetch lecture notes dynamically from Canvas.
- Merge all notes into a single PDF for easy access.
- Configurable through environment variables for reusability.
- Python 3.8+
- Canvas API access
- Environment variables properly set
-
Clone the repository:
git clone https://github.com/ishaankor/canvas-files-merger.git cd canvas-files-merger
-
Install dependencies:
pip install -r requirements.txt
-
Configure
.env
:API_URL=https://your-canvas-api-url API_KEY=your-canvas-api-key COURSE_ID=your-course-id INSTITUTION_URL=https://your-institution-url NOTE_FOLDER_DIRECTORY=/path/to/your/notes COMBINED_NOTES_DIRECTORY=/path/to/output/combined-notes.pdf SENDER_EMAIL=your-email@example.com RECEIVER_EMAIL=receiver-email@example.com EMAIL_PASSWORD=your-email-password MODULE_ITEM_IDS=[]
-
Run the script:
python notes_synthesizer.py
This project is licensed under the MIT License - see the LICENSE file for details.