Extract email addresses from PDFs stored in multiple folders.
Script runs through all folders, subfolders and files in given location and extracts email addresses from 1st pages.
- Prepare your PDFs - put them in folders.
- Put main folder location in
rootdir
variable. - By default script takes first page of a PDF (
pageObj = pdfReader.getPage(0)
) and there it looks for email address. - Modify regex if needed in
re.search("", full_text)
. By modyfing regex you can easily adapt this script to look for phone numbers, addresses and other info.
You can download candidates' CVs from your HR platform and this script will extract all email addresses.
- Try different pdf-reading libraries to improve success rate.
- 0.1: Launch.
Using SemVer.
GNU General Public License v3.0, see LICENSE.md.