in outer loop i=156 ,it is not looping for other values of i=1,2,3,4.......I am trying to run this for loop in scrapy python . But first loop is not working
for i in range(1,157):
start_urls = ["https://appworld.blackberry.com/cas/producttype/apps?"
"countryid=100&lang=en&page={}&pagesize={}&"
"sortby=popular&licensetype=all&callback=_producttype_apps"
"&_=1499255634459".format(i, page) for page in xrange(1,1001)]
The first loop outside the start_urls is not working The results required is like this for page=1 pagesize should run from 1 to 1000 and when page=2 pagesize should again run from 1 to 1000 and so on till page=156