Python Forum
Error after a few minutes of running
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after a few minutes of running
#5
julio2000 Wrote:My script refreshes the website and checks if the sneakers are in stock, it repeats this for as long as possible
This task does not normally need a high level of recursion. It means that you are repeating the task by the means of recursion instead of repeating it by an infinite loop. The structure of the program should be
while True:
    refresh_the_website()
    check_if_the_sneakers_are_in_stock()
None of these functions should call itself, directly or indirectly.
Reply


Messages In This Thread
Error after a few minutes of running - by julio2000 - Feb-05-2020, 06:54 PM
RE: Error after a few minutes of running - by Gribouillis - Feb-05-2020, 09:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error when running headless selenium julio2000 2 4,587 Feb-01-2020, 12:41 PM
Last Post: julio2000
  Running flask run produces error. Charles1 1 4,077 Oct-04-2019, 10:38 PM
Last Post: snippsat
  Error when running .py file but not when entering exact same code in CLI Broadsworde 3 2,756 Dec-11-2018, 09:06 AM
Last Post: Broadsworde
  whats the error in this code in python 3.0 as this is running 2.0 pyhon ekansh 7 5,190 Feb-05-2018, 06:47 AM
Last Post: seco

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020