Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/waseemsabir/telegram-bot
- Owner: WaseemSabir
- Created: 2020-12-02T21:47:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T13:02:59.000Z (almost 4 years ago)
- Last Synced: 2024-11-04T23:21:31.016Z (about 2 months ago)
- Topics: bot, flask, hooks, python, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.