{"id":21044329,"url":"https://github.com/kjell5317/pda-tutor","last_synced_at":"2025-03-13T22:09:53.414Z","repository":{"id":131161443,"uuid":"558956590","full_name":"kjell5317/pda-tutor","owner":"kjell5317","description":"CLI to download assignments of students.","archived":false,"fork":false,"pushed_at":"2023-06-12T04:06:43.000Z","size":67,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T12:49:45.165Z","etag":null,"topics":["cli","nodejs","npm-package"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjell5317.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-28T17:20:31.000Z","updated_at":"2024-09-03T20:28:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"be8c08ba-732f-4bb6-a13e-7577cedceb7b","html_url":"https://github.com/kjell5317/pda-tutor","commit_stats":null,"previous_names":["kjell5317/cli-pda_tutor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjell5317%2Fpda-tutor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjell5317%2Fpda-tutor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjell5317%2Fpda-tutor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjell5317%2Fpda-tutor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjell5317","download_url":"https://codeload.github.com/kjell5317/pda-tutor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489898,"owners_count":20299001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","nodejs","npm-package"],"created_at":"2024-11-19T14:16:19.975Z","updated_at":"2025-03-13T22:09:53.397Z","avatar_url":"https://github.com/kjell5317.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI PDA-Tutor\n\nThis CLI allows you to distribute all assignments of students to the correcting tutors. Each tutor has to use the CLI and picks a unique number, so nobody is correcting the same. Wrong named files are excluded automaticlly.\n\n## Installation\n\n1. Install [Nodejs](https://nodejs.org/en/download/)\n1. Install [Chrome](https://www.google.de/google_chrome/download)\n1. Install [Chromedriver](http://chromedriver.storage.googleapis.com/index.html) and add it to your PATH\n1. Run `npx cli-pda_tutor`\n\n### Add Chromedriver to your PATH (Windows)\n\n1. Create directory `C:\\bin`\n1. Copy chromedriver.exe to `C:\\bin`\n1. Hit WIN+R and run `sysdm.cpl`\n1. Edit Path under \"Erweitert\" -\u003e \"Umgebungsvariablen\"\n1. Double click Path under \"Benutzervariablen\"\n1. Add `C:\\bin` (DO NOT delete anything else)\n\n## Configuration\n\n1. Create `config.json` in the directory that your console outputs with the following content:\n\n```json\n{\n  \"stud_ip\": {\n    \"name\": \"\", // string: your username\n    \"password\": \"\" // string: your password\n  },\n  \"folder_id\": {\n    \"01\": \"4e41298c8fa595b706c66g377ca1a6df\", // string: go to the folder where your students upload the first assignment in your browser and copy the ID from the URL\n    \"02\": \"993ada6g5700be0607ddd1c4d052998c\" // create as many IDs as there are assignments in the semester\n  },\n  \"tutors\": 8, // int: number of correcting tutors\n  \"regEx\": \"^UE\\\\d{2}_\\\\w+(\\\\[\\\\d+\\\\])?\\\\.zip$\", // string: RegExp for the file name\n  \"url\": \"https://elearning.uni-oldenburg.de/api.php/\", // string: your Stud.IP domain\n  \"course_id\": \"fc24089554cf8ge7d1d076f4829a2d8a\", // string: the ID of your course can also be found in the URL behind cid=\n  \"downloadPrefix\": \"\" // string: choose a path on your machine where the files should be downloaded to\n}\n```\n\nEnter your values as described in the comments\n\n`pdaWS2223.config.json` is an example\n\n## Usage\n\nRun `npx cli-pda_tutor` followed by the number of the current exercise and your section number from 0 to max number of tutors. Example: `npx cli-pda_tutor 1 1`\n\n### Flags\n\n* `-l` lists the files you would get but does not download them. Can not be used with `-u`\n* `-m` outputs the email address of all students who hand over files with wrong names\n* `-a` downloads all files, even if the name is wrong. Can not be used with `-u` or `-m`\n* `-u` unzips the downloaded files automaticly. This is only supported for MacOS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjell5317%2Fpda-tutor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjell5317%2Fpda-tutor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjell5317%2Fpda-tutor/lists"}