Exemple #1
0
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
Exemple #2
0
def test():
    query = 'bird fly'
    url = make_appgravity_url_from_query(query)
    page = urlutil.getpage_bycurl(url)
    res = myparser.parse_appgravity(page)
    print(res)