This script searches all the tc numbers for which the TC data is yet to be upload on the KVS website and stores it in a file for further use.
There are two scripts:
- Node JS script
- Python script
You can use any script, it's all upto you.
You should have at least a basic understanding of fundamental programming concepts and some experience with introductory Javascript
or Python
. And the knowledge of Node JS
is an advantage.
Make sure you have the following installed. And the installation will be based on your preferences. If you choose to go with Node JS then install Node JS related requirements only and if you choose to go with Python then install Python related requirements only.
- Latest version of Node.js
- Latest version of NPM (Node Package Manage)
- Latest version of Python
- Latest version of git (This is optional. It requires only if you choose to clone project)
-
Either you can clone or download repository from GitHub.
-
Navigate to project directory in the terminal or command prompt.
cd kvs-scripts
-
Install project dependencies
-
Node JS
npm install
-
Python
pip install -r requirements.pip
-
-
Run the Script
-
Node JS User
npm start <url> <from> <range> <logTcData>
-
Python User
python tc-data.py <url> <from> <range> <log_tc_data>
-
url
- It is required, and is the base url of your KV School e.g.-
Node JS
npm start https://no2udaipur.kvs.ac.in/ 3045701
-
Python
python tc-data.py https://no2udaipur.kvs.ac.in/ 3045701
-
-
from
- It is required, and is the starting tc number e.g.-
Node JS
npm start https://no2udaipur.kvs.ac.in/ 3045701
-
Python
python tc-data.py https://no2udaipur.kvs.ac.in/ 3045701
-
-
range
- It is optional, and is like how many next tc numbers you want to process like 10 or 20. The default value is 1. e.g.-
Node JS
npm start https://no2udaipur.kvs.ac.in/ 3045701 10
-
Python
python tc-data.py https://no2udaipur.kvs.ac.in/ 3045701 10
-
-
logTcData
orlog_tc_data
- It is optional, and is a flag value where 1 means to print TC issued data of processed admisison number and 0 (zero) means to skip the logging TC issue data. The default value is 0. e.g.-
Node js
python tc-data.py https://no2udaipur.kvs.ac.in/ 3045701 10 1
-
Python
python tc-data.py https://no2udaipur.kvs.ac.in/ 3045701 10 1
-
-
-
-
TC Number File Output:
- Both script will generate
tc-numbers.txt
file in the project directory. It contains all the tc number whose TCs are not yet issued or omitted to issue.
- Both script will generate
- Fork it ( https://github.com/vishalnagda1/kvs-scripts/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request.