Skip to content

Instantly share code, notes, and snippets.

@mahendrakalkura
Created August 23, 2015 04:02
Show Gist options
  • Save mahendrakalkura/4ceea8b0801860f8f99f to your computer and use it in GitHub Desktop.
Save mahendrakalkura/4ceea8b0801860f8f99f to your computer and use it in GitHub Desktop.
# -*- 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