/Web-Screenshot-Bot

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

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Web-Screenshot-Bot

Codacy Badge made-with-python Open Source Love svg1 Try it on telegram

A Telegram Web-Screenshot Bot Based on Pyrogram

Introduction

Telegram Bot that creates screenshot [PNG/JPEG] or PDF of a given link. Can be matched with various other settings like resolution, partial or full-page rendering and background rendering. The bot can be currently found in @BetterWebShotBot.

Available Resolutions are :

  1. 640x480
  2. 800x600
  3. 1280x720
  4. 2560x1440

Splitting of long pages is available for png and jpeg, up to 10 images are sent as media group images above the count of 10 are zipped and send as a document.

Installing

The Legacy Way

Simply clone the repository and run the main file:

git clone https://github.com/alenpaul2001/Web-Screenshot-Bot.git
cd Web-Screenshot-Bot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
# <Create creds.py appropriately>
python3 main.py

an example creds.py 👇

import os

class my():
    BOT_TOKEN = "12345:49dc3eeb1aehda3cI2TesHNHc"
    API_ID = 256123
    API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"

Thanks to

Dan Tès for his Pyrogram Library

Mattwmaster58 for the port of Pyppeteer Library

special thanks to :

<-W4RR10R-/> and @SpEcHIDe for helping me.

Λиʞ⫯𝚝⅁øμϩᴧ⋎ and //𝚂𝚊𝚢𝚊𝚗𝚝𝚑// for suggesting new features.

Made with ❤️️ in Kerala

Copyright & License