Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:36:11+00:00 2026-06-18T10:36:11+00:00

Possible Duplicate: extracting text from MS word files in python I want to parse

  • 0

Possible Duplicate:
extracting text from MS word files in python

I want to parse (in order to perform a search with an expression) a .doc file with a script in python. It runs on a unix machine.

Can anyone help ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:36:13+00:00Added an answer on June 18, 2026 at 10:36 am

    You may take a look at this project: python-docx.
    After downloading the library, you can run python example-extracttext.py docfile.docx textfile.txt | grep some-expression in the shell. Surely you can also do more sophisticated search in python code when necessary.

    The shortcoming of python-docx is it currently only supports ms-Word 2007/2008, if that concerns you, I recommend antiword, which supports Microsoft Word version 2, 6, 7, 97, 2000, 2002 and 2003. Actually I’ve been using that in my vimrc to be able to view ms-word files in VIM editor. Although it’s not a python script, it can easily be invoked from Python.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Extracting text from HTML file using Python What is the best way
Possible Duplicate: Extracting the last segment on an URI I want to get the
Possible Duplicate: Recommended way to initialize srand? I am extracting frames from AVI. I
Possible Duplicate: Convert date format yyyy-mm-dd => dd-mm-yyyy I am extracting data from MySQL
Possible Duplicate: Regexp for extracting a mailto: address I want to fetch the emails
Possible Duplicate: Extracting the content of an element from an external page Is there
Possible Duplicate: Extracting dollar amounts from existing sql data? I have a column in
Possible Duplicate: How can I convert a list<> to a multi-dimensional array? I want
Possible Duplicate: How to do the vector of sets in C++? I want to
Possible Duplicate: check whether internet connection is available with C# I just want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.