Skip to main content

Python3 library to get urls from PDF files.

Project description

lemonpdf

PyPI - Downloads PyPI - License GitHub Tag

Python3 library to get urls from PDF files.

Install

sudo apt install tesseract-ocr poppler-utils
pip install lemonpdf

Quickstart

Command line interface use (CLI)

lemonpdf file.pdf

save file

lemonpdf file.pdf --output  urls.txt --save

scripts

from lemonpdf import Extractor

pdf_path = 'file.pdf'
output_txt_path = 'out_file.txt'

extractor = Extractor(pdf_path=pdf_path, output_txt_path=output_txt_path)

urls = extractor.extract_urls_from_pdf(save=True)

print(urls)

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

lemonpdf-1.0rc9.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

lemonpdf-1.0rc9-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page