1 #coding=utf-8 import urllib2 import urllib import json output = open('huizho.json', 'w') for page in range(1,30): //爬取的页数,从1至29页 request =urllib2.Request('http://www.hdgtjy.com/Index/PublicResults') request.add_header('X-Requested-With','XMLHttpReq…