Open config.json and enter email and password of your MSTeams then in the key section add the departments of which you wanna extract the email id's,name and rollnumbers in the format -"21EC1","21CS3" add as many departments as you like. The code will search for emails from roll number 1 to 200 and will stop whenever it stops finding rollnumbers.
Run Email_Extractor.py in terminal or any other compiler. The data will be extracted into data.csv The code takes 1 sec per email extraction so wait for the code to complete!