pyresparser icon indicating copy to clipboard operation
pyresparser copied to clipboard

Multiple Documents Parser

Open jthomas-dot opened this issue 5 years ago • 4 comments

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 avatar Jan 23 '20 11:01 jthomas-dot

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

jthomas-dot avatar Jan 23 '20 12:01 jthomas-dot

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

OmkarPathak avatar Jan 28 '20 12:01 OmkarPathak

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

prmr003 avatar Jul 11 '21 18:07 prmr003

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

Same here.

prmr003 avatar Jul 11 '21 18:07 prmr003