Skip to main content

Download websites as PDF in Delta Chat

Project description

Web to PDF

Latest Release CI Code style: black

Delta Chat bot that allows to fetch websites as PDF. Just send any URL to the bot in private or add it to get a PDF in any message containing an URL.

Install

pip install deltabot-web2pdf

You also need to install wkhtmltopdf package. Debian/Ubuntu example:

sudo apt-get install wkhtmltopdf

Warning! Version in debian/ubuntu repos have reduced functionality (because it is compiled without the wkhtmltopdf QT patches), such as adding outlines, headers, footers, TOC etc. To use this options you should install static binary from wkhtmltopdf site: https://wkhtmltopdf.org/

Usage

Configure the bot's Delta Chat account:

web2pdf init bot@example.com PASSWORD

You can run web2pdf init several times to add multiple different accounts to the bot so it can be reached in more than one email address.

The bot's display name, avatar and status/signature can also be tweaked:

web2pdf config selfavatar "/path/to/avatar.png"
web2pdf config displayname "My Bot"
web2pdf config selfstatus "Hi, I am a Delta Chat bot"

To run the bot so it starts processing messages:

web2pdf serve

To see all available options run web2pdf --help

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

deltabot_web2pdf-0.2.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

deltabot_web2pdf-0.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file deltabot_web2pdf-0.2.0.tar.gz.

File metadata

  • Download URL: deltabot_web2pdf-0.2.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for deltabot_web2pdf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 998703231736a68a40768c88fd3bee22380c9fc396863d47713c351edd82449b
MD5 11be7c5ef2d1bc6bea56179e824e498e
BLAKE2b-256 88b50f81f5028d9cd0bead97be330e6eeeafd661c77c7dcc11dba413f319cac4

See more details on using hashes here.

File details

Details for the file deltabot_web2pdf-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deltabot_web2pdf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15e3ebe4da1f0cbc7770459a7a77377138053a32fe4ff8b65a6c44c12dcc59d9
MD5 3ed7f6aa028a9ff89b2c63f5133418d0
BLAKE2b-256 2f84614397834132ae0bb3f34672cab293ddd4fa71afd1e0aac0d8dbeb3e46f3

See more details on using hashes here.

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