
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Efficient PDF analysis, text extraction, preprocessing, and pattern recognition with customizable configurations and utilities.
This is a Python package that provides a set of tools and utilities for processing and analyzing PDF documents. It includes functionality for extracting text and tables from PDFs, cleaning and preprocessing text data, and analyzing content for keywords and patterns. The package also provides a number of configuration options for customizing the behavior of the tools and utilities, making it flexible and easy to use in a variety of different contexts. Whether you need to extract data from PDF documents for data analysis, or analyze PDF content for specific keywords or patterns, this package provides the tools you need to get the job done quickly and efficiently.
This project leverages packages
nltk == 3.8.1 spacy == 3.5.2 PyMuPDF == 1.21.1 camelot-py == 0.11.0 opencv-python == 4.7.0.72 ghostscript == 0.7
python -m spacy download en_core_web_sm
$ apt install ghostscript python3-tk
$ brew install ghostscript tcl-tk
{ "std_out_logging": true, "supported_file_types": [".pdf"], "invalid_content_regexs": ["X{2,}"], "stop_words": [ "na", "dependent", "address", "plans", "network", "nonnetwork", "additional", "covered" ], "keywords": { "dental": 5, "vision": 5, "life": 5, "disability": 5 }, "keyword_synonyms": { "dental": ["orthodontic", "Endo", "Perio", "Oral"], "vision": ["eye", "vision", "lens", "lenses", "contact", "contacts"], "life": [ "accident", "critical", "illness", "accidental", "dismember", "AD&D" ], "disability": [] }, "word_min_length": 3 }
from extractlib.settings import config print(json.dump(config.config_raw, indent=4))
from extractlib.document.process import process_document import json def main(file: str): result = process_document(file, exclude_pages=[2,3], use_multithreading=False, split_pages_output_dir='./output', delete_split_pages=False) # Save the HTML content to a temporary file with open('temp.json', 'w') as f: json.dump(result, f, indent=4) if __name__ == '__main__': # get working directory import os target_dir = os.path.dirname(os.path.abspath(__file__)) main(f'{target_dir}/_testdata/PDF.pdf')
FAQs
Efficient PDF analysis, text extraction, preprocessing, and pattern recognition with customizable configurations and utilities.
We found that insights-extractor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.