PySearcher is a Python script that allows you to search for a specific string within various file formats. It provides a convenient way to find occurrences of a string in documents, code files, PDFs, PowerPoint presentations, and more.
- Clone the repository to your local machine.
- Install the required dependencies by running
pip install python-docx PyPDF2 python-pptx
in your terminal or command prompt. - Open a terminal or command prompt and navigate to the directory where the script is located.
- Run the script using the command
python file_searcher.py
. - Enter the string you want to search for.
- Specify your search preferences, including case sensitivity and exact match.
- specify the directory to search for.
- Run the script to see the main menu
-
Add the string to search for and adjust your settings
-
Select the directory to search
- The output
- Supported file formats include .docx, .py, .txt, .json, .pdf, and .pptx.
- The script can perform both case-sensitive and case-insensitive searches based on user preference.
- You can choose to search for an exact match or partial matches within the files.
- Uses the beautiful Azure theme by rdbende
- Limited support for non-English languages due to potential encoding issues.
- Search accuracy may depend on the quality of the file content extraction for specific formats.
- Some file formats may require additional dependencies or libraries for parsing and extraction.
- Make the GUI better.
- Add support for a recursive search for subdirectories.
- Make a web version where people could upload to the application and get results.
- Add more supported file formats.
Feel free to contribute, report any issues, or suggest improvements by creating an issue or submitting a pull request.