Apr-16-2019, 01:16 PM
You would have to replace the lines marked with ## with your blocks of code. For instance, "success = True ##" would be a blocking step to establish the initial connection, then if it succeed, it set the "self.connected" flag to true so it can proceed with fetching and/or parsing. It is pretty basic stuff, which can be done in many different ways. It is up to you to figure out the best way to implement it according to your needs.