Created
August 23, 2015 04:02
-
-
Save mahendrakalkura/4ceea8b0801860f8f99f 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
# -*- coding: utf-8 -*- | |
from grequests import get, map | |
for response in map( | |
( | |
get( | |
url, | |
headers={ | |
'X-Requested-With': 'XMLHttpRequest', | |
}, | |
) | |
for url in [ | |
'http://www.graphicsprings.com/ajax/fetch/normal/0/{page}'.format(page=page + 1) | |
for page in range(1, 200) | |
] | |
) | |
): | |
for item in response.json()['data']['items']: | |
print 'https://www.graphicsprings.com/filestorage/stencils/{filename}'.format(filename=item['filename']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment