Coder Social home page Coder Social logo

gulci's Introduction

Web-Screenshot-Bot

Codacy Badge made-with-python Open Source Love svg1

A Telegram Web to 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 fullpage rendering and background rendering. The bot can be currently found in @WEBSSRobot.

Available Resolutions are :

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

Spliting of long pages is available for png and jpeg, upto 20 images is sent as mediagroup images above the count of 20 are zipped and send as document.

Installing

The Easy way

Deploy

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

gulci's People

Contributors

alenpaulvarghese avatar sayanthd avatar codacy-badger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.