I want to write a service on the bottle framework, which will parse information from other sites once in a while and add it to the database. And when you receive a request, output the summarized information from the database and output it in the form of an HTML page. The question is: how to force the application on the bottle to independently collect information from other sites once a certain time?
from bottle import route, run, template def parser(time=n): # ΡΡΠ½ΠΊΡΠΈΡ ΠΏΠ°ΡΡΠΈΠ½Π³Π° ΡΠ°ΠΉΡΠΎΠ² Π·Π°ΠΏΡΡΠΊΠ°Π΅ΠΌΠ°Ρ ΡΠ°Π· Π² n-ΠΌΠΈΠ½ΡΡ @route('/report/') def index(): return template(# ΡΡΠΌΠΌΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ ΠΏΠΎ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΡΠΌ ΠΊΡΠΈΡΠ΅ΡΠΈΡΠΌ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΈΠ· ΠΠ) run(host='localhost', port=8080)
report- gil9red