Skip to content

Commit ddbcfc8

Browse files
committed
Updated README
1 parent 51ea9c7 commit ddbcfc8

File tree

2 files changed

+27
-31
lines changed

2 files changed

+27
-31
lines changed

README.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ python -m spacy download en_core_web_sm
4545
python -m nltk.downloader words
4646
```
4747

48+
# Documentation
49+
50+
Official documentation is available at: https://www.omkarpathak.in/pyresparser/
51+
4852
# Supported File Formats
4953

5054
- 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
6670

6771
```bash
6872
usage: pyresparser [-h] [-f FILE] [-d DIRECTORY] [-r REMOTEFILE]
69-
[-sf SKILLSFILE]
73+
[-re CUSTOM_REGEX] [-sf SKILLSFILE] [-e EXPORT_FORMAT]
7074

7175
optional arguments:
72-
-h, --help show this help message and exit
73-
-f FILE, --file FILE resume file to be extracted
74-
-d DIRECTORY, --directory DIRECTORY directory containing all the resumes to be extracted
75-
-r REMOTEFILE, --remotefile REMOTEFILE remote path for resume file to be extracted
76-
-sf SKILLSFILE, --skillsfile SKILLSFILE custom skills CSV file against which skills are searched for
77-
```
78-
79-
For extracting data from a single resume file, use
80-
81-
```bash
82-
pyresparser -f <resume_file_path>
83-
```
84-
85-
For extracting data from several resumes, place them in a directory and then execute
86-
87-
```bash
88-
pyresparser -d <resume_directory_path>
89-
```
90-
91-
For extracting data from remote resumes, execute
92-
93-
```bash
94-
pyresparser -r <path_to_remote_resume_file>
95-
```
96-
97-
For extracting data against your specified skills, create a CSV file with no headers. Sample file can be found [here](pyresparser/skills.csv)
98-
99-
```bash
100-
pyresparser -sf <path_to_custom_skills_file>
76+
-h, --help show this help message and exit
77+
-f FILE, --file FILE resume file to be extracted
78+
-d DIRECTORY, --directory DIRECTORY
79+
directory containing all the resumes to be extracted
80+
-r REMOTEFILE, --remotefile REMOTEFILE
81+
remote path for resume file to be extracted
82+
-re CUSTOM_REGEX, --custom-regex CUSTOM_REGEX
83+
custom regex for parsing mobile numbers
84+
-sf SKILLSFILE, --skillsfile SKILLSFILE
85+
custom skills CSV file against which skills are
86+
searched for
87+
-e EXPORT_FORMAT, --export-format EXPORT_FORMAT
88+
the information export format (json)
10189
```
10290

10391
# Notes:

docs/cli.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@ For specifying the export format you can use the following option:
5656
pyresparser -e json -f /path/to/resume/file
5757
```
5858

59-
Note: Currently only JSON export is supported
59+
Note: Currently only JSON export is supported
60+
61+
## Custom regex for parsing phone numbers
62+
63+
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
64+
65+
```bash
66+
pyresparser -re '<pattern>' -f /path/to/resume/file
67+
```

0 commit comments

Comments
 (0)