From 71c3d5932ed0061ed163dd99f1b3121c4f6d3f91 Mon Sep 17 00:00:00 2001
From: Hirusha Adikari <36286877+hirusha-adi@users.noreply.github.com>
Date: Wed, 24 Jan 2024 10:46:51 +0530
Subject: [PATCH] update
---
README.md | 38 ++------------------------------------
1 file changed, 2 insertions(+), 36 deletions(-)
diff --git a/README.md b/README.md
index 8cef14d..8ac66d5 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
# docx-search
-
@@ -15,12 +14,9 @@ The `docx-search` Python script is a tool designed to search for a specified wor
- **Logging:** Detailed logging is implemented, capturing information about the search process, including the presence or absence of the target word in each document.
- **Multi-threading:** The script utilizes the `concurrent.futures.ThreadPoolExecutor` to concurrently process multiple Word documents, improving overall search performance.
-**Graphical User Interface**
-
-A GUI for this can be found at
+- **Graphical User Interface**
-- [Sinhala-Typing/docx-search-gui-tk](https://github.com/Sinhala-Typing/docx-search-gui-tk)
-- [Sinhala-Typing/docx-search-gui-customtkinter](https://github.com/Sinhala-Typing/docx-search-gui-customtkinter)
+ - Check out the below demonstration:
**Getting Started:**
@@ -39,12 +35,6 @@ A GUI for this can be found at
```
python search.py
```
- - The script will search for the specified target word in all `.docx` files within the current working directory by default.
-
- - Optionally, you can specify the target directory and word using command-line arguments:
- ```
- python search.py --dir /path/to/documents --word example
- ```
3. **Logging:**
@@ -54,28 +44,6 @@ A GUI for this can be found at
- The script outputs information about the presence or absence of the target word in each processed document.
-5. **Execution Time:**
- - The script logs the execution time, providing insights into the performance of the search operation.
-
-**Using as a Module:**
-
-1. **Import the Module:**
-
- - Import the `docx_search` module into your Python script:
- ```python
- from docx_search import docx_search
- ```
-
-2. **Perform Word Search:**
- - Call the `docx_search` function with the desired target directory and word:
- ```python
- docx_search(target_dir="/path/to/documents", target_word="example")
- ```
-
-**Notes:**
-
-- Ensure the `python-docx` library is installed before running the script.
-
**Contributing:**
- Contributions are welcome! Feel free to fork the repository, make improvements, and create a pull request.
@@ -87,5 +55,3 @@ A GUI for this can be found at
**Acknowledgments:**
- This readme.md and the docstrings were generated with ChatGPT, a language model developed by OpenAI.
-
-