OmkarPathak / pyresparser

A simple resume parser used for extracting information from resumes
GNU General Public License v3.0
771 stars 394 forks source link

Multiple Documents Parser #15

Open jthomas-dot opened 4 years ago

jthomas-dot commented 4 years ago

Can you provide an example with output of multiple document parsing?

I can parse one pdf with no problem but when I point to a directory and try to parse multiple pdfs I can an error. It may be user error. I would appreciate any assistance. Thanks.

Below is the error I'm receiving:

ResumeParser('/Users/jthomas/Documents/resumes/').get_extracted_data() Traceback (most recent call last): File "<pyshell#86>", line 1, in ResumeParser('/Users/jthomas/Documents/resumes/').get_extracted_data() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyresparser/resume_parser.py", line 40, in init ext = os.path.splitext(self.__resume)[1].split('.')[1] IndexError: list index out of range

jthomas-dot commented 4 years ago

I can do it with the CLI I am just getting an error with python

OmkarPathak commented 4 years ago

@jthomas-dot while doing this in Python, you can use the os.listdir() method.

prmr003 commented 2 years ago

@OmkarPathak How we can use os.listdir() method? Do we have to modify ResumeParser.py file or use it in our file only?

prmr003 commented 2 years ago

I can do it with the CLI I am just getting an error with python

Same here.