From ddbcfc8e57436a90154efff83395b9433aa9ad2b Mon Sep 17 00:00:00 2001 From: Omkar Pathak Date: Sat, 14 Dec 2019 09:28:56 +0530 Subject: [PATCH] Updated README --- README.md | 48 ++++++++++++++++++------------------------------ docs/cli.md | 10 +++++++++- 2 files changed, 27 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 4b766b1..1b4046e 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,10 @@ python -m spacy download en_core_web_sm python -m nltk.downloader words ``` +# Documentation + +Official documentation is available at: https://www.omkarpathak.in/pyresparser/ + # Supported File Formats - PDF and DOCx files are supported on all Operating Systems @@ -66,38 +70,22 @@ For running the resume extractor you can also use the `cli` provided ```bash usage: pyresparser [-h] [-f FILE] [-d DIRECTORY] [-r REMOTEFILE] - [-sf SKILLSFILE] + [-re CUSTOM_REGEX] [-sf SKILLSFILE] [-e EXPORT_FORMAT] optional arguments: - -h, --help show this help message and exit - -f FILE, --file FILE resume file to be extracted - -d DIRECTORY, --directory DIRECTORY directory containing all the resumes to be extracted - -r REMOTEFILE, --remotefile REMOTEFILE remote path for resume file to be extracted - -sf SKILLSFILE, --skillsfile SKILLSFILE custom skills CSV file against which skills are searched for -``` - -For extracting data from a single resume file, use - -```bash -pyresparser -f -``` - -For extracting data from several resumes, place them in a directory and then execute - -```bash -pyresparser -d -``` - -For extracting data from remote resumes, execute - -```bash -pyresparser -r -``` - -For extracting data against your specified skills, create a CSV file with no headers. Sample file can be found [here](pyresparser/skills.csv) - -```bash -pyresparser -sf + -h, --help show this help message and exit + -f FILE, --file FILE resume file to be extracted + -d DIRECTORY, --directory DIRECTORY + directory containing all the resumes to be extracted + -r REMOTEFILE, --remotefile REMOTEFILE + remote path for resume file to be extracted + -re CUSTOM_REGEX, --custom-regex CUSTOM_REGEX + custom regex for parsing mobile numbers + -sf SKILLSFILE, --skillsfile SKILLSFILE + custom skills CSV file against which skills are + searched for + -e EXPORT_FORMAT, --export-format EXPORT_FORMAT + the information export format (json) ``` # Notes: diff --git a/docs/cli.md b/docs/cli.md index 17a61ad..372094b 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -56,4 +56,12 @@ For specifying the export format you can use the following option: pyresparser -e json -f /path/to/resume/file ``` -Note: Currently only JSON export is supported \ No newline at end of file +Note: Currently only JSON export is supported + +## Custom regex for parsing phone numbers + +While pyresparser parses most of the phone numbers correctly, there is a possibility of new patterns being added in near future. Hence, we can explicitly provide the regex required to parse the desired phone numbers. This can be done using + +```bash +pyresparser -re '' -f /path/to/resume/file +``` \ No newline at end of file