I'm trying to combine the async functionality of program A
With the super simple string based logic enabled by program B
#pseudocode
label beginning
sleep(10)
if substring in someString:
print "It's not happening!!!"
goto beginning
Snippet 2:
#unique verification variable automatically gets generated every request
c.setopt(pycurl.HTTPHEADER, ['verification: ' + verification ])
Basically if the first time the request response html didn't return a specific string. A request with the same verification code has to be send after 10 seconds. This all has to happen asynchronously preferably in a way that doesn't touch the harddisk (only memory) so it can be executed with 1k> requests per second.
Pythons lack of goto in the name of some kind of purity fetish has made my head hurt in solving this problem.
The center of gravity seems to be around these functions: c.setopt(pycurl.WRITEDATA,) vs c.setopt(pycurl.WRITEFUNCTION,) m = pycurl.CurlMulti() m.handles.append(c)
Any suggestions on how to best solve this puzzle are welcome. What i'm looking for mostly is maybe a general of pseudocode/logic + some suggestions for functions i should look into, once i have the general blueprint i should be able to cobble it together myself.
How can I get the response body from pycurl multi curl requests
the code from that answer seems decent and works only when i run it at the end after doing what it should do it says