Skip to content

A very simple bot for converting multiple website pages to PDF.

License

Notifications You must be signed in to change notification settings

N0Fanru/URL-to-pdf-telebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eng rus

About the bot

A simple Telegram bot for converting multiple web pages to PDF format. The user can choose to download the file in standard size or optimized for mobile devices.

✨ How the bot works:

  1. The user sends text containing several links (as plain text or hyperlinks)
  2. The bot converts each link to PDF in order and saves everything into a single archive
  3. A zip archive containing all PDF files is sent to the user (If there is only one link, the PDF file is sent directly)

⚙️ Installation and Setup

Note: It is recommended to run the bot on a hosting service or server, as any Telegram bot requires constantly running code for continuous operation.

  1. Prerequisites

  2. Cloning the repository
    git clone https://github.com/N0Fanru/URL-to-pdf-telebot
    or
    download as a ZIP file and extract it

  3. Installing dependencies
    In the command line: pip install -r requirements.txt

  4. Create a .env file based on the .env.example file

  5. Start the bot
    python bot.py

If you liked the project, don't forget to give it a ⭐ on GitHub!

About

A very simple bot for converting multiple website pages to PDF.

Topics

Resources

License

Stars

Watchers

Forks