catalogo-uc-json
v2.0.0
Published
Data fetcher for the course catalog of the Pontificia Universidad Católica de Chile (UC) in JSON format.
Readme
Catalogo UC JSON
Overview
Catalogo UC JSON is a data fetcher for the course catalog of the Pontificia Universidad Católica de Chile (UC) in JSON format.
Table of Contents
Installation and Execution
Install
npm install catalogo-uc-jsonUse
- Import
CourseDataParserin your project and use it:import { CourseDataParser } from "catalogo-uc-json"; const SIGLA = "IIC2233"; const showData = async () => { const courseDataParser = new CourseDataParser(); const data = await courseDataParser.getData(SIGLA); console.log(data); }; showData();CourseDataParser.getData(sigla: string)receives one parameter, thesiglaof the desired course.- It returns a object in
JSONformat:{ Prerequisites: 'IIC1103 o IIC1102', Prerequisites_and_restrictions_relation: 'No tiene', Restrictions: 'No tiene', Equivalences: '(IIC1222)', Course_name: 'PROGRAMACION AVANZADA', Translation: 'ADVANCED COMPUTER PROGRAMMING', Sigla: 'IIC2233', Credits: '10', Modules: '03', Course_nature: 'MINIMO' }
Technologies Used
- Node.js: JavaScript runtime
- JSDOM: HTML parsing
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please follow these steps:
[!IMPORTANT] Valid
<prefix>are:
feat: when you are adding a new feature.fix: when you are patching a bug.
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b <prefix>/feature-name - Commit your changes and push to your fork.
- Open a pull request when your changes are ready to be reviewed.
[!IMPORTANT] PR names must start with a verb and description must follow the template.
