コード例 #1
0
ファイル: geventscraper.py プロジェクト: ravibalgi/eNREGA
def fetch_panchayat(url, district, taluka):
    encoded_url = _cleanUrl(url)
    data = panchayatExtract(encoded_url)
    if "panchayat" in global_data[district]["taluka"][taluka].keys():
        global_data[district]["taluka"][taluka]["panchayat"] =\
            dict(data.items() +
                 global_data[district]["taluka"][taluka]["panchayat"].items())
    else:
        global_data[district]["taluka"][taluka]["panchayat"] = data
コード例 #2
0
def fetch_panchayat(url, taluka):
    encoded_url = _cleanUrl(url)
    result = panchayatExtract(encoded_url)
    return result