This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyquery import PyQuery as pq | |
from PyQt4 import QtCore | |
import multiprocessing | |
import time | |
data = ( | |
['a', '2'], | |
) | |
def mp_worker((inputs, the_time)): | |
print "start URL" | |
e = pq("http://www.google.com/") | |
urls = [i for i in e.items('a')] | |
def mp_handler(): | |
p = multiprocessing.Pool(2) | |
p.map(mp_worker, data) | |
if __name__ == '__main__': | |
mp_handler() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment