Y
Y
Yura_Mart2020-02-15 11:40:40
PHP
Yura_Mart, 2020-02-15 11:40:40

How to parse new ads from the site and send them through a telegram bot?

Good afternoon.
There is a task to make a telegram bot that sends new ads from the kolesa.kz website in a certain area.

As I understand it, this data does not need to be stored anywhere, just immediately send a message to the user in a telegram, through a bot, about new announcements.
It is planned to use php, js.

How can this task be accomplished? Do I need to purchase hosting for this task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-15
@Yura_Mart

  1. We need some kind of machine on which all this will be spinning.
  2. On this machine, run your script on a timer (I would use JS, since in my opinion there are more tools for working with sites for it)
  3. Parse the necessary pages in your script. How, it's up to you to decide based on their site specifics.
  4. Next, generate messages for the bot in the TG. How to work with bots in TG using JS on the Internet is also full of information.
  5. Additionally, you may need to store a list of chats for mailing somewhere. Again, where and how - proceed from your task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question