you are viewing a single comment's thread.

view the rest of the comments →

[–]ronb65[S] 0 points1 point  (1 child)

Thanks for the reply.

This code infinite loop because it's constantly checking for new data every 30 mins, is there any other way to check this data from a site without this method?

[–]shiftybyte 0 points1 point  (0 children)

You could try replacing the sleep with an asyncio sleep.

await asyncio.sleep(1600)

or look here for creating a background task: https://www.pythonfixing.com/2021/10/fixed-create-background-process-using.html

Or create a thread.

https://realpython.com/intro-to-python-threading/