python简历数据提取_pyresparser 一个简单的简历解析器,用于从简历中提取信息

pyresparser是一个简洁的Python库,用于从PDF和DOCX格式的简历中提取关键信息,如姓名、邮箱、电话、技能和工作经验。依赖于spaCy和nltk进行NLP操作。支持通过CLI接口进行使用,返回结果为包含详细信息的字典列表。
摘要由CSDN通过智能技术生成

pyresparser

A simple resume parser used for extracting information from resumes

Built with ❤︎ and

☕ by Omkar Pathak

Features

Extract name

Extract email

Extract mobile numbers

Extract skills

Extract total experience

Extract college name

Extract degree

Extract designation

Extract company names

Installation

You can install this package using

pip install pyresparser

For NLP operations we use spacy and nltk. Install them using below commands:

# spaCy

python -m spacy download en_core_web_sm

# nltk

python -m nltk.downloader words

Documentation

Official documentation is available at: https://www.omkarpathak.in/pyresparser/

Supported File Formats

PDF and DOCx files are supported on all Operating Systems

If you want to extract DOC files you can install textract for your OS (Linux, MacOS)

Note: You just have to install textract (and nothing else) and doc files will get parsed easily

Usage

Import it in your Python project

from pyresparser import ResumeParser

data = ResumeParser('/path/to/resume/file').get_extracted_data()

CLI

For running the resume extractor you can also use the cli provided

usage: pyresparser [-h] [-f FILE] [-d DIRECTORY] [-r REMOTEFILE]

[-re CUSTOM_REGEX] [-sf SKILLSFILE] [-e EXPORT_FORMAT]

optional arguments:

-h, --help show this help message and exit

-f FILE, --file FILE resume file to be extracted

-d DIRECTORY, --directory DIRECTORY

directory containing all the resumes to be extracted

-r REMOTEFILE, --remotefile REMOTEFILE

remote path for resume file to be extracted

-re CUSTOM_REGEX, --custom-regex CUSTOM_REGEX

custom regex for parsing mobile numbers

-sf SKILLSFILE, --skillsfile SKILLSFILE

custom skills CSV file against which skills are

searched for

-e EXPORT_FORMAT, --export-format EXPORT_FORMAT

the information export format (json)

Notes:

If you are running the app on windows, then you can only extract .docs and .pdf files

Result

The module would return a list of dictionary objects with result as follows:

[

{

'college_name': ['Marathwada Mitra Mandal’s College of Engineering'],

'company_names': None,

'degree': ['B.E. IN COMPUTER ENGINEERING'],

'designation': ['Manager',

'TECHNICAL CONTENT WRITER',

'DATA ENGINEER'],

'email': 'omkarpathak27@gmail.com',

'mobile_number': '8087996634',

'name': 'Omkar Pathak',

'no_of_pages': 3,

'skills': ['Operating systems',

'Linux',

'Github',

'Testing',

'Content',

'Automation',

'Python',

'Css',

'Website',

'Django',

'Opencv',

'Programming',

'C',

...],

'total_experience': 1.83

}

]

References that helped me get here

Donation

If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares

😄

PayPal

₹ (INR)

Stargazer over time

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值