Created
February 27, 2018 20:55
-
-
Save akashnimare/f1f977da6cea048277695fb109224fa0 to your computer and use it in GitHub Desktop.
Grab college list from - knowyourcollege-gov.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const collegeList = []; | |
var getAllCollege = document.getElementsByClassName('instituteName'); | |
for (let i = 0; i < getAllCollege.length; i++) { | |
console.log("Total College count:", getAllCollege.length) | |
collegeList.push | |
( | |
{ | |
"name": document.getElementsByClassName('instituteName')[i].innerText, | |
"url": document.getElementsByClassName('instituteLinks')[i].innerHTML | |
} | |
) | |
} | |
copy(JSON.stringify(collegeList)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment