Skip to content

Commit

Permalink
Merge pull request #54 from NewWays-TechForImpactKAIST/14-create-andong
Browse files Browse the repository at this point in the history
14 create andong
  • Loading branch information
Re-st authored Nov 15, 2023
2 parents 242b59f + 12fd0f6 commit 8aa00ca
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/andong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/gimcheon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/gumi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/gyeongju.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/moongyeong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/pohang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/sangju.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangbuk/yaecheon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/changnyeong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/changwon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/geoje.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/gimhae.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/goseong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/hamyang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/hanam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/hapchun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/jinju.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/miryang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/namhae.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/sacheon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/sanchung.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/uiryeong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/gyeongsangnam/yangsan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/danyang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/gangjin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/goheung.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/hamppyeong.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/henam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/muan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/wando.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scrap/local_councils/junnam/yeonggwang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8aa00ca

Please sign in to comment.