Coder Social home page Coder Social logo

course-scraper's Introduction

Welcome to triton-enroll's backend!

Tech Stack

General

This is the backend for Triton enroll. It sends requests to UCSD’s catalog website in order to get course data.

For a specified department and quarter, the school’s website returns an entire HTML page (rip). I wrote a parser in javascript to extract this data. If you specify a subject and quarter, course_parser.js will return to you:

  • Course name
  • Course number
    • Timing
    • Location
    • Room
    • Professor
    • Discussion Section/ Lab/ Seminar information
      • Section Name + number
      • Timing
      • Location
      • Room
      • Total seats
      • Remaining seats

Sometimes, there are multiple pages for each course (for example, the Computer Science and Engineering Department). To handle this, I wrote request_major.js which finds the number of pages, retrieves the HTML response for each of them and compiles the result into one JSON object.

I then realized that if I try to parse everything every time, my web application will be painfully slow. So, i decided to use a Firebase Fire store Database to save all of one quarter’s data (i.e. when I populate the database using firebase\populateFirestore.js), Then, I can quickly access and display data on my website!

course-scraper's People

Contributors

charvishukla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.