Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.
/ k12-shs-api Public archive

API for List of Senior High Schools grabbed from DepEd.

Notifications You must be signed in to change notification settings

nedpals/k12-shs-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATTENTION: This project is no longer maintained. Please go to https://github.com/sorxrob/k-to-12-shs-api for the the maintained fork by @sorxrob. Repo deleted and the project is now unusable. See the blog post for details.

DepEd K12 SHS API

A list of Senior High Schools from DepEd now in an API. Original data

Why did you do it?

DepEd's site sucks so I decided to make my own project that can search for schools based on their offerings.

How did you do it?

I scraped the DepEd's website using Ruby, Wombat gem, deep_merge, and some free time. For the server, I used typicode/json-server for light handling and fast public API setup.

How to use it?

Public API

I maintained a public API that can be used in web projects and it's very easy to get aboard. It updates whenever there are new changes to this repo:

https://shs-k12-api.now.sh

Here's also a mirror: http://139.59.105.62:5002/schools

For documentation regarding the use of the public API, click here.

Database

  1. You can simply consume it directly by using this URL:
https://cdn.rawgit.com/nedpals/k12-shs-api/master/output.json

or... 2. Generate your own:

# Install first the dependencies.
$ gem install deep_merge wombat

# 1. Execute the script.
$ ruby aggregator/scraper.rb

# 2. Merge all data scraped using this script.
$ ruby aggregator/collector.rb

Server

Simply run npm install or yarn install and start using it by simply executing the npm run start command.

Disclaimer / Note

I would suggest to use it on a monthly basis as DepEd's servers may overload or else we can't able to grab data again :(

(c) 2017 nedpals

About

API for List of Senior High Schools grabbed from DepEd.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages