lemonpdf
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)
get urls
lemonpdf -u file.pdf
save urls list in file txt
lemonpdf -u file.pdf -o urls.txt -s
get domains
lemonpdf -d file.pdf
save domains in file txt
lemonpdf -d file.pdf -o domains.txt -s
scripts
get urls and save file txt
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(save=True)
print(urls)
get domains and save file txt
from lemonpdf import Extractor
pdf_path = 'file.pdf'
output_txt_path = 'domains.txt'
extractor = Extractor(pdf_path=pdf_path, output_txt_path=output_txt_path)
urls = extractor.extract_domains(save=True)
print(urls)
Metadata
Release files for lemonpdf 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lemonpdf-2.0.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lemonpdf-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / lemonpdf-2.0.0.tar.gz
| Download URL | lemonpdf-2.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15852f44f492e9b5a2772349c7a7afa37e0c5bb25a10bad3bf343ab2b0b54a6b
|
|
BLAKE2b-256 checksum How to use checksums |
c6ab511613ea8e3f8b638c2bfa0d7b8110cf78949d2ce10677b55670c60845de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.6
|
Release files / lemonpdf-2.0.0-py3-none-any.whl
| Download URL | lemonpdf-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c96d225be0257320209efb0beab58232e8021b570e0363498b6ca18099e853ea
|
|
BLAKE2b-256 checksum How to use checksums |
5422f99684bf557dfe3bf5cc6e5d855acacd3cbd696635d72bbafbf2492b161b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.6
|