This script scrapes information about schools affiliated with CBSE for a given state.
First make sure you have Node.js installed on your machine. In the project folder, run the below command in a Terminal or Command Prompt:
npm install
To scrape list of schools into Excel, run below command in Terminal or Command Prompt:
node start -- <state>
# e.g., for Delhi
node start -- 27
State | Code |
---|---|
ANDAMAN & NICOBAR | 25 |
ANDHRA PRADESH | 1 |
ARUNACHAL PRADESH | 22 |
ASSAM | 2 |
BIHAR | 3 |
CHANDIGARH | 26 |
CHATTISGARH | 33 |
DADAR & NAGAR HAVELI | 30 |
DAMAN & DIU | 31 |
DELHI | 27 |
FOREIGN SCHOOLS | 50 |
GOA | 28 |
GUJARAT | 4 |
HARYANA | 5 |
HIMACHAL PRADESH | 6 |
JAMMU & KASHMIR | 7 |
JHARKHAND | 34 |
KARNATAKA | 8 |
KERALA | 9 |
LADAKH | 37 |
LAKSHADWEEP | 32 |
MADHYA PRADESH | 10 |
MAHARASHTRA | 11 |
MANIPUR | 12 |
MEGHALAYA | 13 |
MIZORAM | 23 |
NAGALAND | 14 |
ODISHA | 15 |
PUDUCHERRY | 29 |
PUNJAB | 16 |
RAJASTHAN | 17 |
SIKKIM | 18 |
TAMILNADU | 19 |
TELANGANA | 36 |
TRIPURA | 20 |
UTTAR PRADESH | 21 |
UTTARAKHAND | 35 |
WEST BENGAL | 24 |
See LICENSE file.