开发者

text-mine PDF files with Python?

开发者 https://www.devze.com 2022-12-10 08:55 出处:网络
Is there a package/library for python that woul开发者_开发技巧d allow me to open a PDF, and search the text for certain words?Using PyPdf2 you can use extractText() method to extract pdf text and work

Is there a package/library for python that woul开发者_开发技巧d allow me to open a PDF, and search the text for certain words?


Using PyPdf2 you can use extractText() method to extract pdf text and work on it.

Update: Changed text to refer to PyPdf2, thanks to @Aditya Kumar for heads up.


I don't think you can do it in one step, but you can certainly get the text out of a pdf with pdfminer. Then you can apply whatever text search to that recovered data.

0

精彩评论

暂无评论...
验证码 换一张
取 消