code4goal-resume-parser icon indicating copy to clipboard operation
code4goal-resume-parser copied to clipboard

Hi I am trying to use your parser, but I am running into error

Open wsuphappyhour opened this issue 7 years ago • 22 comments

Hi, I am trying to use your parser, but I am running into error. Maybe you have an idea how to fix it?

HR manager:

  • My stack for today are: .gitkeep, resume.html, resume.txt Parse Boy:
  • Hi, i can help you with .gitkeep, resume.html, resume.txt (node:10520) DeprecationWarning: util.print is deprecated. Use console.log instead. { Error: textract does not currently extract files of type [[ application/octet-stream ]] at extract (I:\tools\code4goal-resume-parser\node_modules\textract\lib\extract.js:86:19) at I:\tools\code4goal-resume-parser\node_modules\textract\lib\index.js:9:7 at FSReqWrap.cb [as oncomplete] (fs.js:257:19) typeNotFound: true }
  • I'm working with "resume.txt" now
  • I'm working with "resume.html" now null

Thanks!

wsuphappyhour avatar Dec 13 '16 12:12 wsuphappyhour

@wsuphappyhour hi! try to remove .gitkeep file

likerRr avatar Dec 13 '16 13:12 likerRr

Hi, thanks for swift replay. Your suggestion discarded errors, but one remains:

(node:3348) DeprecationWarning: util.print is deprecated. Use console.log instead. image

Thanks

wsuphappyhour avatar Dec 13 '16 13:12 wsuphappyhour

I also tested on Ubuntu it does not throw same error, but output is null. image

wsuphappyhour avatar Dec 13 '16 13:12 wsuphappyhour

@wsuphappyhour it's not a error, it's just a warning, so ignore it. The null output needs investigations. Sorry, but currently I have no time for this. I would thank you if you investigate the issue and make a PR

likerRr avatar Dec 13 '16 13:12 likerRr

Ok, thanks

wsuphappyhour avatar Dec 13 '16 13:12 wsuphappyhour

i meet with the same error, and find that the reason is 'download from linkedin.com response the http status 999', so error is null. sorry for my poor english. src/dictionary.js

function download(url, callback) {
  request(url, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      callback(body);
    } else {
console.log(response.statusCode);
      callback(null, error)
    }
  });
}

cekimy avatar Dec 21 '16 04:12 cekimy

@wsuphappyhour so, just comment out or delete profiles in src/dictionary.js

profiles: [
]

cekimy avatar Dec 21 '16 04:12 cekimy

@cekimy Great that works, thank you so much! Have a nice day

wsuphappyhour avatar Dec 21 '16 12:12 wsuphappyhour

How will i parse pdf resume

rahul177 avatar Mar 15 '17 09:03 rahul177

@rahul177 make sure you match the requirements for extracting pdf

likerRr avatar Mar 15 '17 10:03 likerRr

@rahul177 have you had success with pdf parsing?

likerRr avatar Mar 20 '17 10:03 likerRr

No @likerRr

rahul177 avatar Mar 20 '17 10:03 rahul177

I want results in xml format not in json format. Can you help me for the same ?

rahul177 avatar Mar 20 '17 10:03 rahul177

@rahul177 the lib doesn't provide such ability. Try to find converter from json to xml on npm.

likerRr avatar Mar 20 '17 11:03 likerRr

@likerRr Thanks for reply. I got the results in xml format. I used xml2js packages.

@likerRr Can you give steps for pdf and docs parsing ?

Thanks

rahul177 avatar Mar 22 '17 10:03 rahul177

@rahul177 I haven't tried it. Read the docs and try to follow them, thanks

likerRr avatar Mar 22 '17 12:03 likerRr

@likerRr Success with pdf parsing. Steps: i) Go to link http://www.foolabs.com/xpdf/download.html ii) Download zip iii) Extract it and add Path in Environment variables.

rahul177 avatar Mar 23 '17 10:03 rahul177

@rahul177 glad to hear that!

likerRr avatar Mar 23 '17 13:03 likerRr

@likerRr I have one question : i) I want first name and last name instead of full name. How we will get the same ?

Thanks

rahul177 avatar Mar 28 '17 07:03 rahul177

How we will edit the dictionary.js for getting first name and last name ?

rahul177 avatar Mar 28 '17 07:03 rahul177

Just split fullname into parts, like:

// es6 
const [firstname, lastName] = fullname.split(' ')

likerRr avatar Mar 28 '17 08:03 likerRr

tnx @rahul177 pdf #extractor how you did that one

venkatr123 avatar Jul 17 '18 10:07 venkatr123