Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wsuphappyhour opened this issue Dec 13, 2016 · 22 comments
Open

Comments

@wsuphappyhour
Copy link

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!

@likerRr
Copy link
Owner

likerRr commented Dec 13, 2016

@wsuphappyhour hi! try to remove .gitkeep file

@wsuphappyhour
Copy link
Author

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
Copy link
Author

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

@likerRr
Copy link
Owner

likerRr commented Dec 13, 2016

@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

@wsuphappyhour
Copy link
Author

Ok, thanks

@cekimy
Copy link

cekimy commented Dec 21, 2016

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
Copy link

cekimy commented Dec 21, 2016

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

profiles: [
]

@wsuphappyhour
Copy link
Author

wsuphappyhour commented Dec 21, 2016

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

@rahul177
Copy link

How will i parse pdf resume

@likerRr
Copy link
Owner

likerRr commented Mar 15, 2017

@rahul177 make sure you match the requirements for extracting pdf

@likerRr
Copy link
Owner

likerRr commented Mar 20, 2017

@rahul177 have you had success with pdf parsing?

@rahul177
Copy link

No @likerRr

@rahul177
Copy link

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

@likerRr
Copy link
Owner

likerRr commented Mar 20, 2017

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

@rahul177
Copy link

@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

@likerRr
Copy link
Owner

likerRr commented Mar 22, 2017

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

@rahul177
Copy link

@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.

@likerRr
Copy link
Owner

likerRr commented Mar 23, 2017

@rahul177 glad to hear that!

@rahul177
Copy link

@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
Copy link

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

@likerRr
Copy link
Owner

likerRr commented Mar 28, 2017

Just split fullname into parts, like:

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

@venkatr123
Copy link

venkatr123 commented Jul 17, 2018

tnx @rahul177 pdf #extractor how you did that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants