-
Notifications
You must be signed in to change notification settings - Fork 11
Description
环境:centos7
语言:Python 3.6.8
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib64/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(args, **kwds))
File "/usr/lib64/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(args))
File "baiduSpider.py", line 30, in getUrls
now_page = re.findall(".?<span class="pc">(.?)", req.text)[0]
IndexError: list index out of range
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "baiduSpider.py", line 58, in
baiduSpider.main()
File "baiduSpider.py", line 49, in main
pool.map(self.getUrls, [i*10 for i in range(76)])
File "/usr/lib64/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib64/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
IndexError: list index out of range