I have a function like:
def func():
While True:
# here is some code that parsing some website
I have a telegram bot that interacts with the user. The user has the opportunity to choose via telegram bot which pages of the site he wants to parse. The user selects parameters for parsing through the bot and then all these parameters are stored in MySQL database.
So, now I have a number of rows in MySQL database. How can I run func()
several times at the same moment?
Because if I have like 100 rows in my DB I need to run func()
100 times at the same time, not one by one.