A helper program that scraps and emails results from Anna University servers during high traffic concurrently.
older version of this project: https://github.com/AravindVasudev/CheckMyResult_OLD
This program takes a JSON array of student's register number with their email ID, fetches their result and emails them. This is useful since the servers are usually overloaded during when the results come out and this program uses a retry function when the request results in an error. This works concurrently and hence is efficient when fetching for multiple students.
-
Install Golang
-
Clone this repository
$ git clone https://github.com/AravindVasudev/CheckMyResult.git
$ cd CheckMyResult
- Install all dependencies
$ go get ./...
- Build the project
$ go build .
- Create
email_smtp.json
with your stmp server details
$ echo "{\"emailID\": \"email@example.com\",\"password\": \"password\",\"server\": \"smtp.gmail.com\"}" > email_smtp.json
- Create
students.json
with all the student details
$ echo "[{\"registerNumber\": \"123456789\", \"emailID\": \"email@example.com\"}]" > students.json
- Run the binary
$ ./CheckMyResult
You are always welcome to open an issue or provide a pull-request!
Built under MIT license.