Skip to content

Instantly share code, notes, and snippets.

@akashnimare
Created February 27, 2018 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akashnimare/f1f977da6cea048277695fb109224fa0 to your computer and use it in GitHub Desktop.
Save akashnimare/f1f977da6cea048277695fb109224fa0 to your computer and use it in GitHub Desktop.
Grab college list from - knowyourcollege-gov.in
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