From c8628078f0b78039cd8284e7ce98ede00066fc9d Mon Sep 17 00:00:00 2001 From: happycastle <41810556+happycastle114@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:03:02 +0900 Subject: [PATCH] Fix: Change class name --- scrap/local_councils/gyeongsangbuk/andong.py | 2 +- scrap/local_councils/gyeongsangbuk/gimcheon.py | 2 +- scrap/local_councils/gyeongsangbuk/gumi.py | 2 +- scrap/local_councils/gyeongsangbuk/gyeongju.py | 2 +- scrap/local_councils/gyeongsangbuk/moongyeong.py | 2 +- scrap/local_councils/gyeongsangbuk/pohang.py | 2 +- scrap/local_councils/gyeongsangbuk/sangju.py | 2 +- scrap/local_councils/gyeongsangbuk/yaecheon.py | 2 +- scrap/local_councils/gyeongsangnam/changnyeong.py | 2 +- scrap/local_councils/gyeongsangnam/changwon.py | 2 +- scrap/local_councils/gyeongsangnam/geoje.py | 2 +- scrap/local_councils/gyeongsangnam/gimhae.py | 2 +- scrap/local_councils/gyeongsangnam/goseong.py | 2 +- scrap/local_councils/gyeongsangnam/hamyang.py | 2 +- scrap/local_councils/gyeongsangnam/hanam.py | 2 +- scrap/local_councils/gyeongsangnam/hapchun.py | 2 +- scrap/local_councils/gyeongsangnam/jinju.py | 2 +- scrap/local_councils/gyeongsangnam/miryang.py | 2 +- scrap/local_councils/gyeongsangnam/namhae.py | 2 +- scrap/local_councils/gyeongsangnam/sacheon.py | 2 +- scrap/local_councils/gyeongsangnam/sanchung.py | 2 +- scrap/local_councils/gyeongsangnam/uiryeong.py | 2 +- scrap/local_councils/gyeongsangnam/yangsan.py | 2 +- scrap/local_councils/junnam/danyang.py | 2 +- scrap/local_councils/junnam/gangjin.py | 2 +- scrap/local_councils/junnam/goheung.py | 2 +- scrap/local_councils/junnam/hamppyeong.py | 2 +- scrap/local_councils/junnam/henam.py | 2 +- scrap/local_councils/junnam/muan.py | 2 +- scrap/local_councils/junnam/wando.py | 2 +- scrap/local_councils/junnam/yeonggwang.py | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/scrap/local_councils/gyeongsangbuk/andong.py b/scrap/local_councils/gyeongsangbuk/andong.py index 3a1601d..88ea1cf 100644 --- a/scrap/local_councils/gyeongsangbuk/andong.py +++ b/scrap/local_councils/gyeongsangbuk/andong.py @@ -25,7 +25,7 @@ def scrap_andong(url="https://council.andong.go.kr/kr/member/name.do") -> ScrapR party_info = profile.find("em", string="소속정당") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="andong", diff --git a/scrap/local_councils/gyeongsangbuk/gimcheon.py b/scrap/local_councils/gyeongsangbuk/gimcheon.py index 13a0cc1..d6b01ff 100644 --- a/scrap/local_councils/gyeongsangbuk/gimcheon.py +++ b/scrap/local_councils/gyeongsangbuk/gimcheon.py @@ -25,7 +25,7 @@ def scrap_gimcheon(url="https://council.gc.go.kr/kr/member/active.do") -> ScrapR party_info = profile.find("span", string="소속정당 : ") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="gimcheon", diff --git a/scrap/local_councils/gyeongsangbuk/gumi.py b/scrap/local_councils/gyeongsangbuk/gumi.py index 1275ae7..e8242ac 100644 --- a/scrap/local_councils/gyeongsangbuk/gumi.py +++ b/scrap/local_councils/gyeongsangbuk/gumi.py @@ -27,7 +27,7 @@ def scrap_gumi( party_info = profile.find("span", string="정") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="gumi", council_type=CouncilType.LOCAL_COUNCIL, councilors=councilors diff --git a/scrap/local_councils/gyeongsangbuk/gyeongju.py b/scrap/local_councils/gyeongsangbuk/gyeongju.py index b98b606..193bd4d 100644 --- a/scrap/local_councils/gyeongsangbuk/gyeongju.py +++ b/scrap/local_councils/gyeongsangbuk/gyeongju.py @@ -28,7 +28,7 @@ def scrap_gyeongju( name = result["name"] if result["name"] else "이름 정보 없음" party = result["party_nm"] if result["party_nm"] else "정당 정보 없음" - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="gyeongju", diff --git a/scrap/local_councils/gyeongsangbuk/moongyeong.py b/scrap/local_councils/gyeongsangbuk/moongyeong.py index 8c5b4f4..ea3647a 100644 --- a/scrap/local_councils/gyeongsangbuk/moongyeong.py +++ b/scrap/local_councils/gyeongsangbuk/moongyeong.py @@ -26,7 +26,7 @@ def scrap_moongyeong(url="https://council.gbmg.go.kr/kr/member/name.do") -> Scra name = result["name"] if result["name"] else "이름 정보 없음" party = result["party_nm"] if result["party_nm"] else "정당 정보 없음" - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="moongyeong", diff --git a/scrap/local_councils/gyeongsangbuk/pohang.py b/scrap/local_councils/gyeongsangbuk/pohang.py index 5b052d0..2324771 100644 --- a/scrap/local_councils/gyeongsangbuk/pohang.py +++ b/scrap/local_councils/gyeongsangbuk/pohang.py @@ -27,7 +27,7 @@ def scrap_pohang( party_info = profile.find("span", string="정") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="pohang", diff --git a/scrap/local_councils/gyeongsangbuk/sangju.py b/scrap/local_councils/gyeongsangbuk/sangju.py index 531ba5c..89ca96d 100644 --- a/scrap/local_councils/gyeongsangbuk/sangju.py +++ b/scrap/local_councils/gyeongsangbuk/sangju.py @@ -27,7 +27,7 @@ def scrap_sangju( party_info = profile.find("em", string="소속정당") if party_info: party = party_info.find_next("span").find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="sangju", diff --git a/scrap/local_councils/gyeongsangbuk/yaecheon.py b/scrap/local_councils/gyeongsangbuk/yaecheon.py index 3e31bee..421b9cc 100644 --- a/scrap/local_councils/gyeongsangbuk/yaecheon.py +++ b/scrap/local_councils/gyeongsangbuk/yaecheon.py @@ -27,7 +27,7 @@ def scrap_yaecheon(url="https://www.ycgcl.kr/kr/member/name.do") -> ScrapResult: name = result["name"] if result["name"] else "이름 정보 없음" party = result["party_nm"] if result["party_nm"] else "정당 정보 없음" - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="yaecheon", diff --git a/scrap/local_councils/gyeongsangnam/changnyeong.py b/scrap/local_councils/gyeongsangnam/changnyeong.py index 8f09573..0df9376 100644 --- a/scrap/local_councils/gyeongsangnam/changnyeong.py +++ b/scrap/local_councils/gyeongsangnam/changnyeong.py @@ -30,7 +30,7 @@ def scrap_changnyeong(url="https://www.cngc.go.kr/kr/member/active") -> ScrapRes party_dd = info[2].get_text(strip=True).replace("정 당 :", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="geoje", diff --git a/scrap/local_councils/gyeongsangnam/changwon.py b/scrap/local_councils/gyeongsangnam/changwon.py index 5273341..7af6f24 100644 --- a/scrap/local_councils/gyeongsangnam/changwon.py +++ b/scrap/local_councils/gyeongsangnam/changwon.py @@ -27,7 +27,7 @@ def scrap_changwon( party_info = profile.find("span", string="정") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="changwon", diff --git a/scrap/local_councils/gyeongsangnam/geoje.py b/scrap/local_councils/gyeongsangnam/geoje.py index d12f06c..c00ede3 100644 --- a/scrap/local_councils/gyeongsangnam/geoje.py +++ b/scrap/local_councils/gyeongsangnam/geoje.py @@ -32,7 +32,7 @@ def scrap_geoje( party_dd = info[2].get_text(strip=True).replace("정당 :", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="geoje", diff --git a/scrap/local_councils/gyeongsangnam/gimhae.py b/scrap/local_councils/gyeongsangnam/gimhae.py index 74d2b27..ac04429 100644 --- a/scrap/local_councils/gyeongsangnam/gimhae.py +++ b/scrap/local_councils/gyeongsangnam/gimhae.py @@ -30,7 +30,7 @@ def scrap_gimhae(url="https://council.gimhae.go.kr/kr/member/active") -> ScrapRe party_dd = info[2].get_text(strip=True).replace("정 당 :", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="gimhae", diff --git a/scrap/local_councils/gyeongsangnam/goseong.py b/scrap/local_councils/gyeongsangnam/goseong.py index 1eff641..c0fcb0b 100644 --- a/scrap/local_councils/gyeongsangnam/goseong.py +++ b/scrap/local_councils/gyeongsangnam/goseong.py @@ -25,7 +25,7 @@ def scrap_goseong( if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="goseong", diff --git a/scrap/local_councils/gyeongsangnam/hamyang.py b/scrap/local_councils/gyeongsangnam/hamyang.py index c980973..fbb430e 100644 --- a/scrap/local_councils/gyeongsangnam/hamyang.py +++ b/scrap/local_councils/gyeongsangnam/hamyang.py @@ -23,7 +23,7 @@ def scrap_hamyang(url="https://council.hygn.go.kr/kr/member/active.do") -> Scrap if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="hamyang", diff --git a/scrap/local_councils/gyeongsangnam/hanam.py b/scrap/local_councils/gyeongsangnam/hanam.py index 238881b..c358287 100644 --- a/scrap/local_councils/gyeongsangnam/hanam.py +++ b/scrap/local_councils/gyeongsangnam/hanam.py @@ -29,7 +29,7 @@ def scrap_hanam(url="https://www.haman.go.kr/04646/04669.web") -> ScrapResult: party_dd = info[2].get_text(strip=True).replace("정당", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="hanam", diff --git a/scrap/local_councils/gyeongsangnam/hapchun.py b/scrap/local_councils/gyeongsangnam/hapchun.py index 47cb577..15cac33 100644 --- a/scrap/local_councils/gyeongsangnam/hapchun.py +++ b/scrap/local_councils/gyeongsangnam/hapchun.py @@ -32,7 +32,7 @@ def scrap_hapchun( party_dd = info[3].get_text(strip=True).replace("소속정당 : ", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="hapchun", diff --git a/scrap/local_councils/gyeongsangnam/jinju.py b/scrap/local_councils/gyeongsangnam/jinju.py index 0b1d6fe..138e811 100644 --- a/scrap/local_councils/gyeongsangnam/jinju.py +++ b/scrap/local_councils/gyeongsangnam/jinju.py @@ -25,7 +25,7 @@ def scrap_jinju(url="https://www.jinjucl.com/kr/member/name.do") -> ScrapResult: party_info = profile.find("em", string="소속정당") if party_info: party = party_info.find_next("span").find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="jinju", diff --git a/scrap/local_councils/gyeongsangnam/miryang.py b/scrap/local_councils/gyeongsangnam/miryang.py index d61211f..2300cbb 100644 --- a/scrap/local_councils/gyeongsangnam/miryang.py +++ b/scrap/local_councils/gyeongsangnam/miryang.py @@ -29,7 +29,7 @@ def scrap_miryang( ) if party_info: party = party_info - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="miryang", diff --git a/scrap/local_councils/gyeongsangnam/namhae.py b/scrap/local_councils/gyeongsangnam/namhae.py index 4755ffa..cfef590 100644 --- a/scrap/local_councils/gyeongsangnam/namhae.py +++ b/scrap/local_councils/gyeongsangnam/namhae.py @@ -25,7 +25,7 @@ def scrap_namhae( party_info = profile.find_all("li")[3] if party_info: party = party_info.get_text(strip=True).replace("소속정당 : ", "") - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="yangsan", diff --git a/scrap/local_councils/gyeongsangnam/sacheon.py b/scrap/local_councils/gyeongsangnam/sacheon.py index 91e8e55..b42632d 100644 --- a/scrap/local_councils/gyeongsangnam/sacheon.py +++ b/scrap/local_councils/gyeongsangnam/sacheon.py @@ -25,7 +25,7 @@ def scrap_sacheon( if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="sacheon", diff --git a/scrap/local_councils/gyeongsangnam/sanchung.py b/scrap/local_councils/gyeongsangnam/sanchung.py index 04b87c8..7c65f6b 100644 --- a/scrap/local_councils/gyeongsangnam/sanchung.py +++ b/scrap/local_councils/gyeongsangnam/sanchung.py @@ -32,7 +32,7 @@ def scrap_sanchung( party_dd = info[3].get_text(strip=True).replace("소속정당", "") if party_dd: party = party_dd - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="hapchun", diff --git a/scrap/local_councils/gyeongsangnam/uiryeong.py b/scrap/local_councils/gyeongsangnam/uiryeong.py index 5a7d23e..19b21fe 100644 --- a/scrap/local_councils/gyeongsangnam/uiryeong.py +++ b/scrap/local_councils/gyeongsangnam/uiryeong.py @@ -26,7 +26,7 @@ def scrap_uiryeong( if party_info: party = party_info.get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="goseong", diff --git a/scrap/local_councils/gyeongsangnam/yangsan.py b/scrap/local_councils/gyeongsangnam/yangsan.py index c5964ab..ef26d33 100644 --- a/scrap/local_councils/gyeongsangnam/yangsan.py +++ b/scrap/local_councils/gyeongsangnam/yangsan.py @@ -23,7 +23,7 @@ def scrap_yangsan(url="https://www.yscouncil.go.kr/kr/member/active") -> ScrapRe party_info = profile.find("strong", string="정 당 : ") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="yangsan", diff --git a/scrap/local_councils/junnam/danyang.py b/scrap/local_councils/junnam/danyang.py index 4377791..aaa4f50 100644 --- a/scrap/local_councils/junnam/danyang.py +++ b/scrap/local_councils/junnam/danyang.py @@ -30,7 +30,7 @@ def scrap_damyang(url="https://council.gc.go.kr/kr/member/active.do") -> ScrapRe party_dd = li.find_all("dd")[1] if party_dd: party = party_dd.get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="damyang", diff --git a/scrap/local_councils/junnam/gangjin.py b/scrap/local_councils/junnam/gangjin.py index b7ff1aa..2964505 100644 --- a/scrap/local_councils/junnam/gangjin.py +++ b/scrap/local_councils/junnam/gangjin.py @@ -30,7 +30,7 @@ def scrap_gangjin(url="https://www.gangjincl.go.kr/index.do?PID=010") -> ScrapRe party_dd = li.find("dd") if party_dd: party = party_dd.get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="damyang", diff --git a/scrap/local_councils/junnam/goheung.py b/scrap/local_councils/junnam/goheung.py index 6f19a48..6aff1bc 100644 --- a/scrap/local_councils/junnam/goheung.py +++ b/scrap/local_councils/junnam/goheung.py @@ -30,7 +30,7 @@ def scrap_goheung(url="https://council.gc.go.kr/kr/member/active.do") -> ScrapRe party_dd = li.find_all("dd")[1] if party_dd: party = party_dd.get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="damyang", diff --git a/scrap/local_councils/junnam/hamppyeong.py b/scrap/local_councils/junnam/hamppyeong.py index b8a6241..c6d4375 100644 --- a/scrap/local_councils/junnam/hamppyeong.py +++ b/scrap/local_councils/junnam/hamppyeong.py @@ -35,7 +35,7 @@ def scrap_hamppyeong( party = "정당 정보 없음" if party_dd: party = party_dd.get_text(strip=True).replace("소속정당 : ", "") - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="yeonggwang", diff --git a/scrap/local_councils/junnam/henam.py b/scrap/local_councils/junnam/henam.py index b344bc7..419d9ce 100644 --- a/scrap/local_councils/junnam/henam.py +++ b/scrap/local_councils/junnam/henam.py @@ -25,7 +25,7 @@ def scrap_henam(url="http://council.haenam.go.kr/kr/member/active.do") -> ScrapR party_info = profile.find("span", string="소속정당 : ") if party_info: party = party_info.find_next("span").get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="gimcheon", diff --git a/scrap/local_councils/junnam/muan.py b/scrap/local_councils/junnam/muan.py index cb4f175..51070d8 100644 --- a/scrap/local_councils/junnam/muan.py +++ b/scrap/local_councils/junnam/muan.py @@ -31,7 +31,7 @@ def scrap_muan( party = "정당 정보 없음" if party_dd: party = party_dd.get_text(strip=True) - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="muan", council_type=CouncilType.LOCAL_COUNCIL, councilors=councilors diff --git a/scrap/local_councils/junnam/wando.py b/scrap/local_councils/junnam/wando.py index dc90a26..7b69659 100644 --- a/scrap/local_councils/junnam/wando.py +++ b/scrap/local_councils/junnam/wando.py @@ -22,7 +22,7 @@ def scrap_wando( for profile in result_json["list"]: name = profile["cmNm"] party = profile["mpParty"] - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="wando", diff --git a/scrap/local_councils/junnam/yeonggwang.py b/scrap/local_councils/junnam/yeonggwang.py index e4e38c0..f7d1c87 100644 --- a/scrap/local_councils/junnam/yeonggwang.py +++ b/scrap/local_councils/junnam/yeonggwang.py @@ -31,7 +31,7 @@ def scrap_yeonggwang( party = "정당 정보 없음" if party_dd: party = party_dd.get_text(strip=True).replace("정당 : ", "") - councilors.append(Councilor(name=name, party=party)) + councilors.append(Councilor(name=name, jdName=party)) return ScrapResult( council_id="yeonggwang",