I have a conceptual question.
I currently have a programme that performs within a never ending loop.
Def (mycode):
Perform login to server and retrieve cookies etc
While 1:
Perform an URL request (with custom headers, cookies etc)
Process the reply
Perform URL requests dependent upon the values in replies
Process reply
I am happy for this to continue as it is, as the URL's must be called one after the other.
Now the server limits a single account to a limited number of functions, it would be useful to be able to perform this function with two (or more) different accounts.
My question is: Is this possible to do? I have done a reasonable amount of reading on queues and multithreading, if you nice people could suggest a method with a good (easy to understand) example I would be most appreciative.