A simple tool to search for strings in PDF files within a directory.
Project description
PDFSearcher
PDFSearcher is a simple Python tool for searching a specific string within PDF files located in a specified directory and its subdirectories. It outputs the file paths where the string is found.
Features
- Recursively searches for a given string in all PDF files within a folder and its subfolders.
- Prints out the paths of the PDF files where the search string is found.
- Easy to install and use.
Installation
You can install the package via pip after uploading it to PyPI:
pip install find-in-pdf
Or, you can install it locally by cloning the repository and using:
pip install .
Usage
To use pdfsearcher in your Python code, you can simply import it and call the search_pdfs_in_folder function.
from pdfsearcher import search_pdfs_in_folder
# Example usage
folder_path = "/path/to/folder"
search_string = "your search string"
search_pdfs_in_folder(folder_path, search_string)
You can also use it as a command-line tool:
pdfsearcher /path/to/folder "search string"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file find_in_pdf-0.1.2.tar.gz.
File metadata
- Download URL: find_in_pdf-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af0dab536639f5cb960177b6093302c7869b6fc5e50f0409359618c3ce83f74
|
|
| MD5 |
bdf75a9cc5f4c3625dfb7302554c20e2
|
|
| BLAKE2b-256 |
83f0ab61115d083e2a4db85151b83f325a20acc2ef3e73801391df0b0d049e6d
|
File details
Details for the file find_in_pdf-0.1.2-py3-none-any.whl.
File metadata
- Download URL: find_in_pdf-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6db5c5917857e14560a5bdd06473e81eb89b4725614aa24324c7073674defe83
|
|
| MD5 |
9ca32f4ef9ea2b75d30ea32869709b40
|
|
| BLAKE2b-256 |
3ab9bc63033510a2077c28f540e502728b0567f697505a13faab164bf85be859
|