code4goal-resume-parser
code4goal-resume-parser copied to clipboard
Hi I am trying to use your parser, but I am running into error
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 hi! try to remove .gitkeep
file
Hi, thanks for swift replay. Your suggestion discarded errors, but one remains:
(node:3348) DeprecationWarning: util.print is deprecated. Use console.log instead.
Thanks
I also tested on Ubuntu it does not throw same error, but output is null.
@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
Ok, thanks
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)
}
});
}
@wsuphappyhour so, just comment out or delete profiles in src/dictionary.js
profiles: [
]
@cekimy Great that works, thank you so much! Have a nice day
How will i parse pdf resume
@rahul177 make sure you match the requirements for extracting pdf
@rahul177 have you had success with pdf parsing?
No @likerRr
I want results in xml format not in json format. Can you help me for the same ?
@rahul177 the lib doesn't provide such ability. Try to find converter from json to xml on npm.
@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 I haven't tried it. Read the docs and try to follow them, thanks
@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 glad to hear that!
@likerRr I have one question : i) I want first name and last name instead of full name. How we will get the same ?
Thanks
How we will edit the dictionary.js for getting first name and last name ?
Just split fullname into parts, like:
// es6
const [firstname, lastName] = fullname.split(' ')
tnx @rahul177 pdf #extractor how you did that one