Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alenpaulvarghese/Web-Screenshot-Bot

A simple telegram bot to take screenshot of a given website and upload it to telegram
https://github.com/alenpaulvarghese/Web-Screenshot-Bot

bot hackertoberfest hacktoberfest-accepted pyppeteer pyrogram python screenshot screenshot-generator telegram telegram-bot web web-screenshot-bot website

Last synced: about 1 month ago
JSON representation

A simple telegram bot to take screenshot of a given website and upload it to telegram

Awesome Lists containing this project

README

        

# Web-Screenshot-Bot
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/165cc3bc283f46879e0e0ed27abdc4a2)](https://www.codacy.com/gh/alenpaul2001/Web-Screenshot-Bot/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alenpaul2001/Web-Screenshot-Bot&utm_campaign=Badge_Grade)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![Try it on telegram](https://img.shields.io/badge/try%20it-on%20telegram-0088cc.svg)](http://t.me/BetterWebShotBot)

A Telegram _Web-Screenshot_ Bot Based on [Playwright](https://github.com/microsoft/playwright)
# Introduction

Telegram Bot that creates screenshot _PNG/JPEG_ or _PDF_ of a given link. Can be combined with a number of additional parameters, such as resolution, partial or full-page rendering. The bot is currently accessible through in @BetterWebShotBot.

### Available Resolutions are :
- Image [PNG/JPEG]
- 800x600
- 1280x720
- 1920x1080
- 2560x1440
- PDF
- Letter
- Legal
- A4
- A5

Splitting of long pages are available for png and jpeg.

# Installing

> Note: the bot requires chromium/chrome binary to render websites.
Simply clone the repository and run the main file:

```sh
git clone https://github.com/alenpaul2001/Web-Screenshot-Bot.git
cd Web-Screenshot-Bot
python -m pip install poetry
poetry install --no-dev && poetry shell
# Install chrome if you don't have it in your system
playwright install chrome
#
python3 __main__.py
```
#### an example config.env 👇
```sh
BOT_TOKEN=12345:49dc3eeb1aehda3cI2TesHNHc
API_ID=256123
API_HASH=eb06d4abfb49dc3eeb1aeb98ae0f581e
### OPTIONAL ###
LOG_GROUP=-123990002
SUPPORT_GROUP_LINK=https://t.me/bytessupport
```

### Made with ❤️️ in Kerala
### Copyright & License

* Copyright (C) 2023 by [AlenPaulVarghese](https://github.com/alenpaul2001)
* Licensed under the terms of the [GNU AGPL Version 3.0](https://github.com/alenpaul2001/Web-Screenshot-Bot/blob/master/LICENSE)