Skip to content

Extract email addresses from PDFs stored in multiple folders.

License

Notifications You must be signed in to change notification settings

vardecab/emails-from-pdfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

emails-from-pdfs

Not Maintained





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.

How to use

  1. Prepare your PDFs - put them in folders.
  2. Put main folder location in rootdir variable.
  3. By default script takes first page of a PDF (pageObj = pdfReader.getPage(0)) and there it looks for email address.
  4. 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.

Use case example

You can download candidates' CVs from your HR platform and this script will extract all email addresses.

Roadmap

  • Try different pdf-reading libraries to improve success rate.

Release History

  • 0.1: Launch.

Versioning

Using SemVer.

License

GNU General Public License v3.0, see LICENSE.md.

Acknowledgements