NjbSyd / CUI-ATD-Companion-Scrapper

Scraps Data from CUIATD official Site and Store in MongoDB
https://timetable-scrapper.vercel.app
0 stars 0 forks source link

CUI ATD Companion Scrapper

Goto Front-End of this project.

Overview

CUI ATD Companion Backend is a Node.js-based application responsible for supporting the functionality of the CUI Unofficial Timetable App. This backend component handles data retrieval, processing, storage, and the crucial task of web scraping to ensure a seamless experience for users navigating their timetables.

Technologies Used

How It Works

  1. Endpoint Handling: The backend manages various endpoints to handle requests from the frontend of the CUI ATD Companion app.

  2. Data Retrieval and Scraping: It interacts with the database to retrieve timetable data requested by the frontend. Additionally, it uses Playwright to scrape data from the "CUOnline" system.

  3. Data Processing: Upon retrieval, the data is processed as needed to ensure its compatibility with the frontend application.

  4. Data Storage: The backend is responsible for storing both scraped and non-scraped data in the MongoDB database.

Getting Started

To set up the CUI ATD Companion Backend locally, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/NjbSyd/CUI-ATD-Companion-Scrapper.git
  2. Navigate to the project directory:

    cd <directory-name>
  3. Install the required dependencies and setup playwright:

    npm run setup
  4. Start the backend server:

    node index.js