Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waseemsabir/telegram-bot

Server for Telegram Bot that interprets Commands and scrapes data from Job Portal
https://github.com/waseemsabir/telegram-bot

bot flask hooks python telegram telegram-bot

Last synced: 3 days ago
JSON representation

Server for Telegram Bot that interprets Commands and scrapes data from Job Portal

Awesome Lists containing this project

README

        

# Basic Telegram Bot
This is the source code of an app that I built for a client. The client had a website on which many jobs are posted reguraly and wanted an easier way to post these jobs on their telegram channel. The bot is a responsive Python Flask Web App and is deployed on Heroku. It listens to all messages sent to the bot id via telegram and responds accordingly. On sending /start command, the bot return the list of all the commands available. The Beautiful Soup library of python is used to extract data from website pages. On sending recent or page with number command, the bot returns the list of most recent jobs posted or the jobs listed on the page number respectively. The user can then send command to post some or all of these jobs on their channel in a format with individual job details. The bot also has a command to post all list of jobs listed under a category. The webhook is set to recieve all the messages as they are sent. And the telegram API is used to send messages for bot chat section or to post jobs in the channel.


Language:


  • Python


    • Flask Web App (For routing)

    • Beautiful Soup (For Web Scrapping)

    • urlib.request (To get html from job website)

    • Telegram Api (For Sending & Recieving messages)




In addition, Webhooks are used to invoke the app every time a message is sent from client side.