{"id":28208821,"url":"https://github.com/shankarbus/examresults","last_synced_at":"2025-10-06T00:14:18.070Z","repository":{"id":289052852,"uuid":"969768492","full_name":"ShankarBUS/examresults","owner":"ShankarBUS","description":"Unofficial TNMGRMU Exam Results Web Interface and .NET Command-Line Interface","archived":false,"fork":false,"pushed_at":"2025-07-04T11:06:41.000Z","size":636,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T12:41:55.492Z","etag":null,"topics":["api","apps-script","automation","cli","cs","dotnet","exam-results","forms","js","mbbs","tnmgrmu","web"],"latest_commit_sha":null,"homepage":"https://shankarbus.github.io/examresults/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShankarBUS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-04-20T22:13:27.000Z","updated_at":"2025-07-04T11:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"94de1e01-7762-464f-b126-94da83fb4562","html_url":"https://github.com/ShankarBUS/examresults","commit_stats":null,"previous_names":["shankarbus/examresults"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ShankarBUS/examresults","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShankarBUS%2Fexamresults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShankarBUS%2Fexamresults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShankarBUS%2Fexamresults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShankarBUS%2Fexamresults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShankarBUS","download_url":"https://codeload.github.com/ShankarBUS/examresults/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShankarBUS%2Fexamresults/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278538423,"owners_count":26003377,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","apps-script","automation","cli","cs","dotnet","exam-results","forms","js","mbbs","tnmgrmu","web"],"created_at":"2025-05-17T15:12:48.325Z","updated_at":"2025-10-06T00:14:18.065Z","avatar_url":"https://github.com/ShankarBUS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unofficial TNMGRMU Exam Results Web Interface and .NET Command-Line Interface\n\n## Overview\n\nThis project provides an **unofficial platform** to access Tamil Nadu Dr. M.G.R. Medical University (TNMGRMU) Exam Results. It includes:\n\n- A **web-based interface** for students to view their results. [GitHub Pages Link](https://shankarbus.github.io/examresults/)\n- A **.NET command-line interface (CLI)** for batch processing and exporting multiple results into a single CSV file. It is currently hardcoded for **final year** results (i.e., `THIRD PROFESSIONAL PART-II`).\n- A [**Guide for Automating TNGMRMU Exam Result Distribution Using Google Forms and Apps Script**](/docs/automation_with_google_forms_and_apps_script.md)\n\n## Disclaimer\n\n\u003e [!CAUTION]\n\u003e\n\u003e - This is an **unofficial tool** only for educational purposes and is **not affiliated with TNMGRMU**. Use at your own discretion.\n\u003e - There is no guarantee that this will work forever as they might change the API anytime in the future.\n\n## Features\n\n- **Web Interface**: Allows users to enter their registration number and fetch results interactively.\n- **.NET CLI Tool**: Automates the process of fetching results for a range of registration numbers and exporting them to a CSV file.\n\n## Installation and Setup\n\n### Prerequisites\n\n- **Web Interface**: A modern web browser.\n- **.NET CLI Tool**: [.NET 9.0 SDK](https://dotnet.microsoft.com/download/dotnet/9.0).\n\n### Steps\n\n1. Clone the repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd examresults\n   ```\n3. For the CLI tool:\n   - Navigate to the CLI folder:\n     ```bash\n     cd src/ExamResultsCLI\n     ```\n   - Build the project:\n     ```bash\n     dotnet build\n     ```\n   - Run the CLI:\n     ```bash\n     dotnet run\n     ```\n4. For the web interface:\n   - Open `web/index.html` in a browser.\n\n## Usage\n\n### Web Interface\n\n1. Open `index.html` in a browser.\n2. Enter your **Registration Number** in the input field.\n3. Click the **Show Results** button to fetch and display your exam results.\n4. Use the **Back** button to reset the interface.\n5. Alternatively, visit the hosted website: [https://shankarbus.github.io/examresults/](https://shankarbus.github.io/examresults/)\n\n### Command-Line Interface (CLI)\n\n1. Run the CLI tool:\n   ```bash\n   dotnet run\n   ```\n2. Enter the starting and ending registration numbers when prompted.\n3. The tool will fetch results for the specified range.\n4. Optionally, save the results to a CSV file by typing `Y` when prompted.\n\n## Project Structure\n\n- **web/**: Contains the web interface files (`index.html`, `script.js`, `styles.css`).\n- **src/ExamResultsCLI/**: Contains the CLI tool source code.\n\n## APIs Used\n\nThis project interacts with the TNMGRMU API to fetch exam results. Below are the APIs used and their functionality:\n\n### 1. Login API\n\n**URL:**\n\n```plaintext\nhttps://cms2api.tnmgrmu.ac.in/Api/index.php/Login/appLogin?registration_no={0}\u0026login_type=result\n```\n\n**Description:**\n\n- This API is used to authenticate and retrieve the `exam_session` for a given registration number.\n- Replace `{0}` with the student's registration number.\n\n**Sample Response:**\n\n```json\n{\n  \"resultcode\": \"200\",\n  \"resultmessage\": \"Success\",\n  \"result\": {\n    \"registration_no\": \"\",\n    \"student_name\": \"\",\n    \"course\": \"M.B.B.S.\",\n    \"exam_session\": \"Feb 2024\",\n    \"source\": \"CMS 1.0\"\n  }\n}\n```\n\n### 2. Load Course Term API\n\n**URL:**\n\n```plaintext\nhttps://cms2api.tnmgrmu.ac.in/Api/index.php/Login/loadCourseTerm?registration_no={0}\u0026exam_session={1}\n```\n\n**Description:**\n\n- This API retrieves the `course_term` for the next API call.\n- Note: it returns an array as there could be multiple terms if the student wrote more than one exams recently.\n- Replace `{0}` with the registration number and `{1}` with the `exam_session` obtained from the Login API.\n\n**Sample Response:** (for final year)\n\n```json\n{\n  \"resultcode\": \"200\",\n  \"resultmessage\": \"Get data\",\n  \"result\": [\n    {\n      \"course_term\": \"THIRD PROFESSIONAL PART-II\"\n    }\n  ]\n}\n```\n\n### 3. Result API\n\n**Base URL:**\n\n```plaintext\nhttps://cms2api.tnmgrmu.ac.in/Api/index.php/StudentPreview/previewGradeMarkAllCourse?registration_no={0}\u0026term_code={1}\n```\n\n**Description:**\n\n- This API fetches the exam results in JSON format.\n- Replace `{0}` with the registration number and `{1}` with the `course_term` obtained from the Load Course Term API.\n\n**Example Specific URL:** (for final year)\n\n```plaintext\nhttps://cms2api.tnmgrmu.ac.in/Api/index.php/StudentPreview/previewGradeMarkAllCourse?registration_no={0}\u0026term_code=THIRD%20PROFESSIONAL%20PART-II\n```\n\n**Functionality:**\n\nThe JSON response is parsed and displayed in the web interface or formatted into a CSV file for batch processing.\n\nThese APIs are integral to the functionality of both the web and CLI tools, enabling seamless retrieval and processing of exam results.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshankarbus%2Fexamresults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshankarbus%2Fexamresults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshankarbus%2Fexamresults/lists"}