P
P
postebayko2020-07-15 18:37:28
Python
postebayko, 2020-07-15 18:37:28

How to auto create pages in python?

There is such a task, let's say there is an article on a news site how to create a copy of this page and replace the title.
That is, a person in a telegram bot enters a line, and this line goes to the site; a new page is created there, identical to the initial one, but with data from the bot. Everything on the side of the bot, I know how to do, but with the site I don’t even know where to start.
Any pointer will help zotya in which direction to read.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Pankov, 2020-07-15
@trapwalker

postebayko , with the current level of training, you simply will not succeed.
You do not know how the site works and works. And we don't know. You didn't even think to mention it in your question. That is absolutely zero, you understand?
Start by understanding how your site is structured, what it is written on (framework, architecture), whether it has a public API for the actions you need.
If yes, then you are very lucky. Read the documentation for the API and there will surely be examples of how to do and what requests to perform the actions you need. Make these requests from your bot code.

T
Tomsk_Statics, 2020-07-15
@Tomsk_Statics

https://lectureswww.readthedocs.io/6.www.sync/2.co...

H
Hcuy, 2020-07-15
@Hcuy

Well, if I understand correctly, then you can connect the bot from the cart to the Django admin panel, and there, using templates, add new pages, although to be honest, do not add, but simply change the name of the existing ones, but you can do a lot of them ... Of course, this is an option myself, but I think it will be the simplest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question