an emails/phones extractor python library with GUI( extract your emails and phones from any file) you can use phonmail as a python library or a desktop app or an online website.
you can use phonmail extractor as an online service here www.phonmail.net but unlike the desktop version it can't handle larger files
the desktop version is built over the phonmail.py library with tkinter
one single independent file you can import it into your project
check the demo.py and follow the steps below
from phonmail import extractor # import the main class (extractor)
there is two main methods in the extarctor opject "emails" and "phones"
text = """ random data with phones and emails
[email protected] Resources, Rolland Miranda blablalbla 814-825-6659 nsdsjnoee lorem ipsm [email protected]
[email protected] apple orange bananaannanananaa 9660501023226 0567886300 kkemjnjn jrgjrgn erfef
[email protected] Manager, Ned Davenport, 868-537-8850, [email protected] Medic
al, Alden Kirby, 574-528-9602, [email protected] Comput er, Antione Harvey, 732-995-8604, [email protected] Operating, Bret
Bruce, 513-704-8737, [email protected] Lead, Nathanael Marsh, hihihihih 689-6810, [email protected] Artificial, Odis Nunez, 201-626-6879dfddsfs, [email protected] Film, Manual Brennan, 510-505-3719sdsdsdsds, [email protected]
"""
ex = extractor(text) # extractor opject , pass the data (text) inside it
print("---------------------------------------emails------------------------------------")
print(ex.emails()) # this method for emails
print("---------------------------------------phones------------------------------------")
print(ex.phones())
emails : return all the emails.
parameter | description | example |
---|---|---|
provider | return only specific provider | ex.emails(provider = "gmail") |
output | return output as string or list by default is string | ex.emails(output = "list") |
phones : return all the phone numbers.
parameter | description | example |
---|---|---|
country_code | return only specific country | ex.phones(country_code = "966") |
output | return output as string or list by default is string | ex.phones(output = "list") |
email_counter : return number of emails.
parameter | description | example |
---|---|---|
provider | return the emails number of specific provider | ex.email_counter(provider = "gmail") |
phone_counter : return number of phones.
parameter | description | example |
---|---|---|
country_code | return the emails number of specific provider | ex.phone_counter(country_code = "1") |