Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
A simple telegram bot to take screenshot of a given website and upload it to telegram
- Host: GitHub
- URL: https://github.com/alenpaulvarghese/Web-Screenshot-Bot
- Owner: alenpaulvarghese
- License: agpl-3.0
- Created: 2020-05-19T11:30:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T16:56:36.000Z (about 1 year ago)
- Last Synced: 2024-08-09T13:14:03.793Z (6 months ago)
- Topics: bot, hackertoberfest, hacktoberfest-accepted, pyppeteer, pyrogram, python, screenshot, screenshot-generator, telegram, telegram-bot, web, web-screenshot-bot, website
- Language: Python
- Homepage:
- Size: 382 KB
- Stars: 84
- Watchers: 5
- Forks: 77
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
# IntroductionTelegram 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
- Letter
- Legal
- A4
- A5Splitting 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)