hapus data yg tdk perlu
This commit is contained in:
parent
ce3ee0d1a3
commit
eb52aa7abf
|
|
@ -1,2 +0,0 @@
|
|||
nama_lengkap;nim;email;no_telepon;alamat_domisili;jurusan;program_studi;tahun_masuk;tahun_lulus;status_pekerjaan;klasifikasi_pekerjaan;nama_perusahaan;jenis_perusahaan;jabatan;lokasi_perusahaan;alamat_perusahaan;deskripsi_perusahaan;tahun_mulai_kerja;masa_kerja_bulan;jumlah_lamaran_dikirim;jumlah_respons_lamaran;jumlah_undangan_wawancara;masa_tunggu_pra_lulus;masa_tunggu_pasca_lulus;total_masa_tunggu;linkedin_profile;sosmed_ig
|
||||
ABRAHAM FIRDAUS FATHURROSI;E31170249;abrahamfirdaus86@gmail.com;81217394021;;Teknologi Informasi;Manajemen Informatika;2016;2019;;Programmer;;;Web Programmer;;;;;;;;;;;;https://www.linkedin.com/in/abraham-firdaus-fathurrosi-a610051b7/;
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -1,40 +0,0 @@
|
|||
import csv
|
||||
import json
|
||||
import time
|
||||
from geopy.geocoders import Nominatim
|
||||
from geopy.exc import GeocoderTimedOut
|
||||
|
||||
unique_codes = ["52400","52100","51900","16400","51400","56000","316000","52000","56600","52500","40100","52300","50700","16000","26000","46000","130300","51800","50500","52200","56700","56400","51300","50600","51600","56300","50400","16100","16300","96000","16200","270200","51100","26600","50100","56100","50200","20500","160300","999999","166100","50300","56200","166000","250100","52600","21900","36300","220400"]
|
||||
|
||||
code_to_name = {}
|
||||
with open('wilayah_dapodik_final.csv', mode='r', encoding='utf-8') as f:
|
||||
reader = csv.DictReader(f)
|
||||
for row in reader:
|
||||
kab = row['Kabupaten_Kota'].replace('Kab. ', '').replace('Kota Adm. ', '').replace('Kota ', '')
|
||||
prov = row['Provinsi'].replace('Prov. ', '')
|
||||
code_to_name[row['Kode_Kabupaten']] = kab + ", " + prov + ", Indonesia"
|
||||
|
||||
geolocator = Nominatim(user_agent="sista_mif_ta_tracer_study")
|
||||
|
||||
coords = {}
|
||||
|
||||
for code in unique_codes:
|
||||
if code in code_to_name:
|
||||
query = code_to_name[code]
|
||||
try:
|
||||
time.sleep(10)
|
||||
location = geolocator.geocode(query)
|
||||
if location:
|
||||
coords[code] = [location.latitude, location.longitude]
|
||||
print(f"Geocoded: {code} -> {query} -> {coords[code]}")
|
||||
else:
|
||||
print(f"NOT FOUND: {code} -> {query}")
|
||||
except GeocoderTimedOut:
|
||||
print(f"TIMEOUT: {code} -> {query}")
|
||||
else:
|
||||
print(f"CODE NOT IN Dapodik: {code}")
|
||||
|
||||
with open('kabupaten_coords.json', 'w') as f:
|
||||
json.dump(coords, f, indent=4)
|
||||
|
||||
print("Done geocoding!")
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -29,6 +29,29 @@
|
|||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/@emnapi/core": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
|
||||
"integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/wasi-threads": "1.2.1",
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@emnapi/runtime": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
|
||||
"integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@emnapi/wasi-threads": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
|
||||
|
|
@ -908,7 +931,6 @@
|
|||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.10.12",
|
||||
"caniuse-lite": "^1.0.30001782",
|
||||
|
|
@ -1894,7 +1916,6 @@
|
|||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.12",
|
||||
"picocolors": "^1.1.1",
|
||||
|
|
@ -2302,7 +2323,6 @@
|
|||
"integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@alloc/quick-lru": "^5.2.0",
|
||||
"arg": "^5.0.2",
|
||||
|
|
@ -2423,7 +2443,6 @@
|
|||
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
|
|
@ -2512,7 +2531,6 @@
|
|||
"integrity": "sha512-s4BJJ+5y1pYL6Otw51FHhVJQhPnuRinKig64g/1+EUNaJsd3gCKdD31IPFvswUgW9/60QT9oFHbZHbQK5imcxw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"lightningcss": "^1.32.0",
|
||||
"picomatch": "^4.0.4",
|
||||
|
|
|
|||
Loading…
Reference in New Issue