Feb-10-2020, 08:53 PM
Hey,
So I've created a piece of code where my script goes to a given product url and it checks (about every second) if the product is in stock. As soon as it's instock it gives me a notification. Else it tries again.
So my goal is to let 1 instance of my program, try the process described above for multiple product url's at the same time (so not after each other). So I want multiple threads that each checks if the product they are on is instock (so every thread is on a different product).
How do I do this? Thanks in advance,
Julius
So I've created a piece of code where my script goes to a given product url and it checks (about every second) if the product is in stock. As soon as it's instock it gives me a notification. Else it tries again.
So my goal is to let 1 instance of my program, try the process described above for multiple product url's at the same time (so not after each other). So I want multiple threads that each checks if the product they are on is instock (so every thread is on a different product).
How do I do this? Thanks in advance,
Julius