GithubHelp home page GithubHelp logo

qepting91 / multi-source-search Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

This project is a Python-based full-text search tool that is capable of searching through multiple document types located either on the local machine or a Google Drive folder. The tool leverages the Whoosh search engine library to efficiently index and search documents.

License: MIT License

Python 100.00%

multi-source-search's Introduction

multi-source-search

Document Search Engine is a Python-based tool that indexes and searches text within documents stored either locally or in a Google Drive folder. The tool provides a GUI for ease of use and is capable of reading and extracting text from .pdf, .doc, .docx, .jpg, and .png file formats.

Features

  • Full-text search of documents.
  • Supports .pdf, .doc, .docx, .jpg, and .png file formats.
  • Can search documents located locally or in a Google Drive folder.
  • Graphical user interface for ease of use.
  • Customizable search context range.

Installation

  1. Clone this repository:

    git clone https://github.com/qepting91/document-search-engine.git
    
  2. Install required Python packages:

    pip install -r requirements.txt
    

Google Drive Setup

In order to search documents stored in Google Drive, you'll need to create a credentials.json file:

  1. Go to the Google Cloud Console.
  2. Create a new project, or select an existing one.
  3. In the sidebar, go to APIs & Services > Library.
  4. Search for "Drive API" and enable it for your project.
  5. Go to APIs & Services > Credentials.
  6. Click "Create Credentials", then "OAuth client ID".
  7. If you haven't configured the OAuth consent screen, you'll need to do so - you can use the default settings.
  8. For application type, choose "Desktop app".
  9. Click "Create", then "OK".
  10. In the credentials list, you should now see an entry for your client ID. Click the download icon on the right to download your credentials.json file.
  11. Move credentials.json into the same directory as the main.py file in this repository.

Usage

  1. Specify the local directories and Google Drive folder to search in the config.json file.

  2. Run the main script:

    python main.py
    
  3. Enter your search query in the application window that appears and click "Search".

The application will display each matching document's path or link and the context around the match.

Dependencies

  • Python 3
  • PyPDF2
  • python-docx
  • PIL
  • pytesseract
  • google-api-python-client
  • google-auth
  • google-auth-httplib2
  • google-auth-oauthlib
  • Whoosh

License

This project is licensed under the terms of the MIT license.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support

If you encounter any problems or have any questions, please open an issue on this GitHub repository.

multi-source-search's People

Contributors

qepting91 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.