Skip to content

Extract Emails from Gmail account, convert to Excel file and classify using various classification algorithms.

License

Notifications You must be signed in to change notification settings

ManasviGoyal/Gmail-Classification

Repository files navigation

Gmail Extraction and Classification

📧 Gmail Extractor

Extracts emails from Gmail from 'Inbox' and 'Spam' folders in .txt format. Then converts each folder to Excel files. Adds 'spam' and 'non-spam' Labels and 1/0 Label_Numbers. Merges both Excel files into one and shuffles them.

Working of Code


NOTE: enable 'Less Secure App' access for the code to work https://myaccount.google.com/lesssecureapps

📬 Gmail Classification

Main steps to build a classifier -

🛠️ Machine Learning Models Used -

  • Logistic Regression
  • Support Vector Machine (Linear)
  • Support Vector Machine (RBF)
  • K Nearest Neighbor
  • Decision Tree Classifier
  • Random Forest Classifier
  • Multinomial Naïve Bayes

  Python Libraries

NumPy  Pandas  Matplotlib  Seaborn  NLTK  Scikit-Learn
BeautifulSoup  imaplib  OS  RE  codecs  getpass  email 

About

Extract Emails from Gmail account, convert to Excel file and classify using various classification algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published