GithubHelp home page GithubHelp logo

concourses's Introduction

CMU course graph visualizer

Scraping course information

This relies on CMU's new schedule of classes site at https://enr-apps.as.cmu.edu/open/SOC/SOCServlet/search. This works as of March 2014.

First, install the necessary packages into your Python 3 installation. You can use make install-scrape to do so. You may end up installing them into Python 2, in which case, use pip3 manually.

Second, are you sure you really want to redownload all the data? You can try the pre-downloaded data stored in raw.tgz by running make unpack-raw. Afterward, to select only the pages you want to redownload, delete the relevant files.

Third, scrape the data by running python3 pipeline.py. If you are editing the scraper, you may want to set force_scrape=True in get_all() so you can test it on all the courses.

You should end up with a folder processed with a bunch of .json files. If there are any errors, you may review them in pipeline.log.

Running the website

Install MongoDB. This will vary depending on your development environment.

Install the necessary packages with make install-site.

If you haven't already, unpack the course data with make unpack-processed.

Then, convert the course data into a format required by the website by running python3 construct.py.

If you want, set a port number with export PORT=<number>. The default port is 8080.

For development, just run python site/main.py and go to http://localhost:<port number>.

Sometimes, on a force quit with Ctrl+C, the bottle server doesn't actually stop and it doesn't release its port. On Mac OS X, you can run lsof -i :<port number> and kill <pid> to kill the python process.

concourses's People

Contributors

caretcaret avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

aroman

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.