def get_boss(query, start=0, count=10): url = get_boss_url(query, start, count) dom = XML(uc.get_cached_url("boss", url, pause=True)) realstart = dom.find("resultset_web").attr("start") if int(realstart) == start: return dom.findAll("result") else: return None
def get_boss(query,start=0,count=10): url = get_boss_url(query,start,count) dom = XML(uc.get_cached_url("boss",url)) realstart = dom.find("resultset_web").attr("start") if int(realstart) == start: return dom.findAll("result") else: return None
def get_boss(query,page=0): url = get_boss_url(query,page*10,10) dom = XML(urlopen(url)) return dom.findAll("result")