From 525a99f411147382996b986cdc05937406343ede Mon Sep 17 00:00:00 2001 From: hmrhkr Date: Wed, 30 Sep 2026 15:18:46 +0200 Subject: [PATCH] feat: updated readme to new dependencies and added marxist.org examples --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 21e1a12..389f1ac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # mlwerke2pdf -Python module to convert texts on http://www.mlwerke.de into Portable Document Format files +Python module to convert texts on http://www.mlwerke.de or https://www.marxists.org into Portable Document Format files mlwerke2pdf fetches the linked subsites from the given table of contents and concats them to a single pdf @@ -9,19 +9,19 @@ converting them to pdf internal links would be possible but rather complex # dependencies -as pdfkit uses wkhtmltopdf you will need it. See https://pypi.org/project/pdfkit/ for instructions +uses python modules requests, BeautifulSoup4, urllib and weasyprint # Usage as commandline util -python mlwerke2pdf_shutil.py -u URL -o PDF_OUTPUT_PATH +python mlwerke2pdf_shutil.py -u URL -o PDF_OUTPUT_PATH [--dry True optional for not writing any files] -use the base / table of contents of a text like http://www.mlwerke.de/me/me04/me04_459.htm as URL +use the base / table of contents of a text like https://www.marxists.org/deutsch/archiv/marx-engels/1848/manifest/index.htm as URL # Usage as Python module ## create MLWerke Object: mlwerk = mlwerke2pdf.MLWerk(URL) -use the base / table of contents of a text like http://www.mlwerke.de/me/me04/me04_459.htm as URL +use the base / table of contents of a text like https://www.marxists.org/deutsch/archiv/marx-engels/1848/manifest/index.htm as URL ## generate a pdf mlwerk.text2pdf(PDF_OUTPUT_PATH)