Giter Club home page Giter Club logo

web-screenshot-bot's Introduction

Web-Screenshot-Bot

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

A Telegram Web-Screenshot Bot Based on 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:

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
# <Create config.env appropriately>
python3 __main__.py

an example config.env 👇

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

web-screenshot-bot's People

Contributors

a-paradox-box avatar alenpaulvarghese avatar codacy-badger avatar dishapatel010 avatar exploitzbots avatar fayasnoushad avatar jaromil avatar mend-bolt-for-github[bot] avatar sayanthd 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.