No description provided.
Please be more precise on what you'd want to achieve.
I want to use multiprocess or threading to crawl pages simultaneously, as code shown below.
But i got this info: 'WARNING: QApplication was not created in the main() thread'
from multiprocessing.pool import ThreadPool
url = 'http://google.com/'
pool = ThreadPool(10)
[pool.apply_async(crawl, (url,)) for i in range(1, 100)]
browser = spynner.Browser(debug_level=spynner.INFO)
if __name__ == '__main__':
I think it s more related with PyQt and some incompatibilities with multiprocess.
See : http://doc.qt.digia.com/4.2/threads.html
I will investigate more.
I ve not finished to investigate but im not sure you can do multiprocessing like that.
For me, you will have to spawn another process with a regular exec as you cant have multithreading + qt without hacks in c++ and seems to be impossible from pyqt.