Code Monkey home page Code Monkey logo

bim-extractor's Introduction

PDF Data Extractor

This script extracts specific data from all PDF files in the working directory and its subdirectories and saves the extracted data into a CSV file. The extracted data includes the "Segment installé", "ID de liste de contrôle", and "Numéro de l'anneau", along with the file name from which the data was extracted.

Features

  • Traverses the working directory and all subdirectories to find PDF files.
  • Extracts the "Segment installé", "ID de liste de contrôle", and "Numéro de l'anneau" from each PDF.
  • Saves the extracted data into a CSV file named output.csv.
  • The CSV file includes a column for the file name from which the data was extracted.

Requirements

  • Python 3.x
  • PyMuPDF
  • PyInstaller

Installation

  1. Clone or download the repository:
git clone https://github.com/ali-issa/bim-extractor.git
cd bim-extractor
  1. Install the required Python packages:
pip install -r requirements.txt

Usage

Running the Script

You can run the script directly using Python:

python bim_extractor.py

Building the Executable

To distribute the script as an executable file for non-technical users, you can use PyInstaller to create a standalone binary. Follow these steps:

  1. Build the executable:
pyinstaller --onefile --windowed bim_extractor.py

The executable will be created in the dist directory. Distribute the executable file (bim_extractor or bim_extractor.exe on Windows) to users. They can run it by double-clicking the file.

Notes

  • Ensure that all the PDF files you want to process are located in the same directory as the executable or in its subdirectories.
  • The output CSV file, output.csv, will be created in the same directory as the executable.

bim-extractor's People

Contributors

ali-issa 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.