请求不返回所有项目

时间:2016-02-11 19:50:09

标签: python python-requests gevent grequests

我有以下代码:

>>> import grequests
>>> urls=[
     'https://www.microsoft.com/en-us/store/movies/the-legend-of-blood-castle/8d6kgwzzx9hm', 
     'https://www.microsoft.com/en-us/store/movies/babe/8d6kgwzl64t3']
>>> rs = (grequests.get(url) for url in urls)
>>> res_items=grequests.map(rs)
>>> res_items
[<Response [200]>]

但是,它应该返回:

[<Response [200]>, <Response [404]>]

但无论出于何种原因,它都没有对404做任何事情。为什么会如此,我需要做些什么才能让404出现在结果中?

0 个答案:

没有答案