Coder Social home page Coder Social logo

coursecrawler's Introduction

uOttawa Course Crawler

This application collects data for TimetablePlanner by crawling the University of Ottawa website to collect sessions, courses and timeslots. The application exports 3 files:

  1. Session.json (name, identifier)
  2. Course.json (code, name, sessions)
  3. Timeslot.json (sessionIdentifier, courseCode, section, activity, place, professor, day)

This data can then be imported to Parse via the Parse Dashboard. Originally I wanted to have the entire process automated however that isn't practical due to Parse 1800 query per minute limit. Over 20,000 objects need to be saved. I suppose I could create a script to save them in batches, however it would take over 10 minutes to run if everything is successful. The problem is that there is no way to find out how many queries you have left until you reach the limit. In addition, the requests from the TimetablePlanner application would count towards it also. Given the complexity of the problem, I decided that it was much simpler and faster to just export them to json and upload them manually.

All the logic of the web crawler is in Spider.swift. To run it, simply call Spider.crawl() and watch it do its thing. There is no GUI yet. All updates are posted to the console.

coursecrawler's People

Contributors

coledunsby avatar

Watchers

 avatar  avatar  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.