An open API service indexing awesome lists of open source software.

https://github.com/deltachat-bot/web2img_deltabot

Web to image converter bot for Delta Chat
https://github.com/deltachat-bot/web2img_deltabot

bot deltabot-cli deltachat python

Last synced: 6 months ago
JSON representation

Web to image converter bot for Delta Chat

Awesome Lists containing this project

README

          

# Web to Image - Delta Chat Bot

[![Latest Release](https://img.shields.io/pypi/v/web2img-deltabot.svg)](https://pypi.org/project/web2img-deltabot)
[![CI](https://github.com/deltachat-bot/web2img_deltabot/actions/workflows/python-ci.yml/badge.svg)](https://github.com/deltachat-bot/web2img_deltabot/actions/workflows/python-ci.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A Delta Chat bot that allows saving website URLs as images (taking screenshots of websites)

## Install

```sh
pip install web2img-deltabot
```

Then, to setup [Playwright](https://playwright.dev/python/docs/intro), run:

```sh
playwright install
```

## Usage

To configure the bot:

```sh
web2img-bot init bot@example.org SuperHardPassword
```

**(Optional)** To customize the bot name, avatar and status/signature:

```sh
web2img-bot config selfavatar "/path/to/avatar.png"
web2img-bot config displayname "Web to Image"
web2img-bot config selfstatus "Hi, send me some URL to convert it to image"
```

Finally you can start the bot with:

```sh
web2img-bot serve
```

To see the available options, run in the command line:

```
web2img-bot --help
```