Automated Email Spam Classifier Application Using Python Flask, Machine Learning and Selenium Tool

preprint OA: closed
Full text JSON View at publisher

Abstract

Abstract We have created an email spam classifier using Naïve Bayes in machine learning and designed a user interface using Python Flask. Recently, we got the idea to prepare a model that automatically classifies spam emails. To achieve this, we used the Selenium tool to grab our emails from the mail folder, test them with our Flask application, and then classify them into spam and ham. Remember, this whole process is automated. Initially, we created the pickle model using Naïve Bayes and deployed it into a Python Flask application. Then, we created a Selenium automated algorithm that works continuously. However, each part of our project will be defined step-by-step in detail. We have also created an algorithm, which is attached in this article. Finally, we have achieved the desired results and are still researching ways to improve the model.
Full text 9,692 characters · extracted from preprint-html · click to expand
Automated Email Spam Classifier Application Using Python Flask, Machine Learning and Selenium Tool | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Automated Email Spam Classifier Application Using Python Flask, Machine Learning and Selenium Tool Sathvik Eppakayala, Shiva Kumar Goud Ankula This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-5746284/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract We have created an email spam classifier using Naïve Bayes in machine learning and designed a user interface using Python Flask. Recently, we got the idea to prepare a model that automatically classifies spam emails. To achieve this, we used the Selenium tool to grab our emails from the mail folder, test them with our Flask application, and then classify them into spam and ham. Remember, this whole process is automated. Initially, we created the pickle model using Naïve Bayes and deployed it into a Python Flask application. Then, we created a Selenium automated algorithm that works continuously. However, each part of our project will be defined step-by-step in detail. We have also created an algorithm, which is attached in this article. Finally, we have achieved the desired results and are still researching ways to improve the model. Selenium Naïve Bayes Flask Framework Machine Learning Deployment Automated System User Interface Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-5746284","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":397036692,"identity":"d926b2fb-b16c-4b57-9eb8-e5be767df515","order_by":0,"name":"Sathvik Eppakayala","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABOUlEQVRIie2PP0vDQBiH7zi4LkdvvSPVfoVIICj+yVdRAulym1NRNFC4yepa0Q+hS3A0HLSLdo60Q2IGF5cgSruIl6JIaYqOgvcMLz9+vA/3HgAGwx8FhnrUPxNhzTxOdSb1nxRcprhUQODbpYJ/qwAGhMvAV1MBtbpx0TtUTVwbZC/FjWrw8NZtv4qdBgYoe0wWFX459PlVX61JIhwW3yliwTAYrUS+Pgw7jlhU7ETYPMUKSiAAi2VAVhHoj3iEtEKwVaF4iXCm6bvyJH3KJzMFQ7nPo+Olis2Ey6+l2pNs19WvbBGLIAyLSC1V2HgYbJyftnzJnt31e63wHkYWjAYEo+q/0Iuuejh529w+o608aUvmsYQWxTQ68Gitk+UVCmCknJ35Es1KVLH+rRzNl3CyZNtgMBj+JR9GS2SX2aJKgQAAAABJRU5ErkJggg==","orcid":"","institution":"Undergraduate at R.V.R. \u0026 J.C. College of Engineering, Data Science Guntur","correspondingAuthor":true,"prefix":"","firstName":"Sathvik","middleName":"","lastName":"Eppakayala","suffix":""},{"id":397036693,"identity":"e954b67d-2798-4a87-b8ce-4461de9e4775","order_by":1,"name":"Shiva Kumar Goud Ankula","email":"","orcid":"","institution":"Undergraduate at R.V.R. \u0026 J.C. College of Engineering, Data Science Guntur","correspondingAuthor":false,"prefix":"","firstName":"Shiva","middleName":"Kumar Goud","lastName":"Ankula","suffix":""}],"badges":[],"createdAt":"2025-01-01 13:08:08","currentVersionCode":1,"declarations":{"humanSubjects":false,"vertebrateSubjects":false,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":false},"doi":"10.21203/rs.3.rs-5746284/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-5746284/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":73024477,"identity":"8754450b-5e36-41b3-af5a-81d7ca62afdb","added_by":"auto","created_at":"2025-01-06 04:48:34","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":516671,"visible":true,"origin":"","legend":"","description":"","filename":"AUTOMATEDEMAILSPAMCLASSIFIERAPPLICATIONUSINGPYTHONFLASK.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5746284/v1_covered_0b33b347-9a9f-4188-9840-32dff8af166a.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"\u003cp\u003eAutomated Email Spam Classifier Application Using Python Flask, Machine Learning and Selenium Tool\u003c/p\u003e","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":true,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Selenium, Naïve Bayes, Flask Framework, Machine Learning, Deployment, Automated System, User Interface","lastPublishedDoi":"10.21203/rs.3.rs-5746284/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-5746284/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eWe have created an email spam classifier using Na\u0026iuml;ve Bayes in machine learning and designed a user interface using Python Flask. Recently, we got the idea to prepare a model that automatically classifies spam emails. To achieve this, we used the Selenium tool to grab our emails from the mail folder, test them with our Flask application, and then classify them into spam and ham. Remember, this whole process is automated. Initially, we created the pickle model using Na\u0026iuml;ve Bayes and deployed it into a Python Flask application. Then, we created a Selenium automated algorithm that works continuously. However, each part of our project will be defined step-by-step in detail. We have also created an algorithm, which is attached in this article. Finally, we have achieved the desired results and are still researching ways to improve the model.\u003c/p\u003e","manuscriptTitle":"Automated Email Spam Classifier Application Using Python Flask, Machine Learning and Selenium Tool","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-01-06 04:32:29","doi":"10.21203/rs.3.rs-5746284/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"ec38b2a1-3740-4a78-b256-c20a5db0869d","owner":[],"postedDate":"January 6th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2025-01-09T10:38:33+00:00","versionOfRecord":[],"versionCreatedAt":"2025-01-06 04:32:29","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-5746284","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-5746284","identity":"rs-5746284","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00