def download_appgravity(): li = config.get_query_list() resdic = {} for query in li: url = make_appgravity_url_from_query(query) page = urlutil.getpage_bycurl(url) resdic[query] = list(map(string.lower, myparser.parse_appgravity(page))) return resdic
def test(): query = 'bird fly' url = make_appgravity_url_from_query(query) page = urlutil.getpage_bycurl(url) res = myparser.parse_appgravity(page) print(res)