Posts by Benito Marculano Ribeiro • 21 points
1 post
-
2
votes1
answer56
viewsQ: How to stop running Python code for time?
How can I make a chunk of code run for x seconds and then stop? In the specific case, I’m expecting a response from a page using request, but if it takes longer than 5 seconds, I want to stop and…