Node.js script scrapes the entire Oregon State course catalog into a MongoDB database.
The scraper has two options for outputting class data. The first and default option is to output data to a MongoDB database. This is accomplished by running the following line:
npm startThe MongoDB instance this scrapes into can be modified with the MONGO_URL
environment variable (default is mongodb://localhost:27017/test). For
debugging, you can access the databse with the following command:
mongo localhost:27017/testAlternatively, the scraper can output course data straight to the command
line. This is accomplished by appending the --console flag when calling the
program like so:
npm start -- --console