N
N
neizon2021-09-17 10:56:37
Python
neizon, 2021-09-17 10:56:37

How to parse the site (train time) and make it activation by buttons in the VK bot?

I would like to understand how to send by button, the time of trains in the VK bot, but I can’t find a solution

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EgorSvinarev, 2021-09-17
@EgorSvinarev

Parsing the schedule each time the bot is requested is too resource intensive. It is better to prepare a sample in advance. For example, you can make a cron-job that will collect the schedule every n-minutes/hours and place it in a database/file, and then send it in response to a request to the bot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question