HUB
Sign inSign up

rutgerfarry/scraper

By rutgerfarry

•Updated over 8 years ago

Docker image for node script that scrapes the Oregon State course catalog

Image
0

2.7K

rutgerfarry/scraper repository overview

⁠scraper Build Status

Node.js script scrapes the entire Oregon State course catalog into a MongoDB⁠ database.

⁠Scraping into MongoDB

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 start

The 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/test

⁠Scraping to command line or piping to other programs

Alternatively, 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
Tag summary
Recent tags
Content type
Image
Digest
Size
45.8 MB
Last updated
over 8 years ago
docker pull rutgerfarry/scraper:latest