Extract email list from any text file. There are few options including sorting and output as any file format.
File name:
Run the command with any file, for example file name is list_of_email.txt, and output file will be extract_email.txt
python extract_email_from_text.py list_of_email.txt > extract_email.text
To sort and unique email Run the command with any file, for example file name is list_of_email.txt, and output file will be extract_email.txt
python extract_email_from_text.py list_of_email.txt | sort | uniq > extract_email.text
Extract mobile numbers (Bangladeshi Mobile number formated as 01XXXXXXXXX) list from any text file.
File name:
There are two files, one is input.txt which contain the raw data, we will extract phone number from this file as output.txt. End of the process we will print the total number. Run the following command
python extract_phone.py
Extract email from website
File name:
In the browser console run the code, in console it will output the extracted email.
With this script using pandas and numpy we can slipt large xls file into smaller chunk. Before run the script update chunksize, your file name and directory as per your requirement.