Inserting information with xml or crawl

Asked 2 years ago, Updated 2 years ago, 114 views

I want to create a mobile web that provides information about election candidates. However, there are so many candidates that I am thinking about how to do it.

Crawling the information on the web page into Python and putting it in.

Convert the information to json or xml in the provided Excel file and use it.

Change each person into an xml format and put it in.

<?xml version="1.0" encoding="UTF-8"?><response>
<header>
<resultCode>INFO-00</resultCode>
<resultMsg>NORMAL SERVICE</resultMsg>
</header>
<body>
<items>
<item>
<sgId>20180613</sgId>
<sgTypecode>4</sgTypecode>
<huboid>100000000</huboid>
<sggName>Jongno-gu</sggName>
<sdName>Seoul Metropolitan Government</sdName>
<wiwName>Jongno-gu</wiwName>
<jdName>Unaffiliated</jdName>
<name>Hong Gil-dong</name>
<hanjaName>洪吉童</hanjaName>
<gender>Nam</gender>
<birthday>19500101</birthday>
<age>68</age>
<addr> Cheongunhyo-dong, Jongno-gu, Seoul</addr>
<jobId>1</jobId>
<job>Businessman</job>
<eduId>1</eduId>
<edu>Korea University Business Administration </edu>
<career1>(former) representative of XX company</career1>
<career2>(former) representative of XX union</career2>
<regdate>20180418</regdate>
<status>Registration</status>
</item>
 . . . .  . . .  . .
</items>
<numOfRows>10</numOfRows>
<pageNo>1</pageNo>
<totalCount>22</totalCount>
</body>
</response>

I'd appreciate it if you could tell me which method is goodPlease let me know if there is a good method even if it is not the one suggested!!

xml crawling

2022-09-22 19:36

1 Answers

As I wrote down the pros and cons of each item

I deleted them because I thought they were all bad. Everyone has one or two fatal weaknesses.

https://www.data.go.kr/dataset/15000908/openapi.do

Like this I think you should just use the API given by the government.


2022-09-22 19:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.