Python Urllib Query -


i thinking through how expand script repeatedly download next 20 files stuck. hints?

import urllib fhand = urllib.urlopen('http://ecorp.azcc.gov/search/details?request.term=1&request.isactive=true&request.type=startswith&request.category=entity&request.searchmethod=businessentity&request.currentpageindex=0&request.entitytype=all&request.pagedirection=next') line in fhand:     print line #.strip() 

seems there currentpageindex=0 parameter in url might able use move next page

for in range(0, 20):     # put full url below, i've put ... shorten     url = 'http://ecorp.azcc.gov/...currentpageindex={}...'.format(i)     fhand = urllib.urlopen(url)     # fhand 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -