如何设置grequests超时

时间:2015-07-25 01:03:53

标签: python grequests

我如何完成以下任务:

  www.spec1.net\js to go to c:\domains\general.net\js1
  www.spec2.net\js to go to c:\domains\general.net\js2

1 个答案:

答案 0 :(得分:5)

试试这个:

reqs = grequests.map(grequests.get(link, headers=header,  timeout=1) for link in links)

source