Created
July 15, 2012 19:28
-
-
Save fanzeyi/3118264 to your computer and use it in GitHub Desktop.
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
import grequests | |
BASE_PATH = 'http://xxxxx.com/web/_photo/pic/' | |
urls = ["%d0000%s%d" % (year, '0'*(4-len(str(no))), no) for year in range(2005, 2012) for no in range(2001)] | |
rs = (grequests.get(BASE_PATH + u + '.JPG') for u in urls) | |
result = grequests.map(rs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment