O
O
oiaya2022-01-13 18:37:03
Python
oiaya, 2022-01-13 18:37:03

How to get and store part of a string from a site link?

There is a site where the news is posted. I need to remember the id from the latest news link and when posting a new post, compare it with the saved one, if it is + 1, then save it and send it to the telegram bot accordingly. If someone can help, then tell me with checking the id and saving it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zhbert, 2022-01-13
@Zhbert

Use regexp, Luke!
If only there was an example link...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question