Skip to content

HwangDongJun/ComputerLanguage_LocalDistributionChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ComputerLanguage_LocalDistributionChart

Github์—์„œ ์‚ฌ์šฉ์ž(์•ฝ 100๋ช…)๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” language์˜ ์ง€์—ญ ๋ถ„ํฌ์— ๋Œ€ํ•ด ์•Œ์•„๋ณธ๋‹ค.

  1. ์‚ฌ์šฉํ•˜๋Š” ์Šคํ‚ฌ

    • Python
    • Rest API (v3)
    • GraphQL API (v4)
    • ELK ์Šคํƒ
  2. ๊ธฐ๋ณธ ๊ตฌ์กฐ
    structure

  3. ์‹คํ–‰ ์ˆœ์„œ ๋ฐ ํŒŒ์ผ์˜ ๋‚ด์šฉ

    • ์ฒซ ๋ฒˆ์งธ๋กœ "python3 main.py userID:userPWD language" ๋ฅผ ์ด์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ์–ธ์–ด์— ๋Œ€ํ•œ ์‚ฌ๋žŒ๋“ค์˜ location data๋ฅผ ๊ฐ€์ ธ์˜จ๋‹ค. => ํ•ด๋‹น ๊ฒฐ๊ณผ๋กœ LocationData_langeage.csv ํŒŒ์ผ์ด ์ƒ์„ฑ๋œ๋‹ค. (ex: LocationData_Python.csv)
    • ๋‘ ๋ฒˆ์งธ๋กœ "python3 change_df.py" ๋ฅผ ์ด์šฉํ•˜์—ฌ lang_confํด๋”์— location.json ํŒŒ์ผ์ด ์ƒ์„ฑ๋œ๋‹ค. => ํ•ด๋‹น ํŒŒ์ผ์€ ์ตœ์ข…์ ์œผ๋กœ Kibana์— data๋ฅผ ์ €์žฅํ•˜์—ฌ chart๋กœ ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•œ ํ˜•ํƒœ๋ฅผ ๋งŒ๋“  ๊ฒƒ์ด๋‹ค.
    • ./lang_conf/mapping.json ์€ Elastic search์—์„œ ๊ฐ๊ฐ์˜ properties์˜ type์„ ์ง€์ •ํ•˜๊ธฐ ์œ„ํ•ด์„œ ์‚ฌ์šฉํ–ˆ๋‹ค.
    • ./lang_conf/location.json ์€ Elastic search์—์„œ index์•ˆ์— Bucket์œผ๋กœ ์ •๋ณด๋ฅผ ๋„ฃ๊ธฐ ์œ„ํ•ด์„œ ์‚ฌ์šฉํ–ˆ๋‹ค.
  4. ELK ์Šคํƒ ๊ฐ„๋‹จํ•œ ๋ช…๋ น์–ด (์ˆœ์„œ๋Œ€๋กœ)

  5. Kibana -> Coordinate Map location


๊ธฐํƒ€์‚ฌํ•ญ

1. ์ง€์—ญ์˜ ์ขŒํ‘œ(์œ„๋„, ๊ฒฝ๋„)๋ฅผ ์–ป์–ด์˜ค๋Š” ๊ณผ์ •์—์„œ Google Map API๋Š” ๋น„์šฉ์„ ๋ถ€๋‹ดํ•ด์•ผ ํ•˜๊ธฐ์— python selenium์„ ์‚ฌ์šฉํ•˜์—ฌ ์ขŒํ‘œ๋ฅผ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค.

์ขŒํ‘œ๋ฅผ ์–ป์€ ์‚ฌ์ดํŠธ

๋ถ€์กฑํ•œ ๋ถ€๋ถ„

1. ์ขŒํ‘œ๋ฅผ ์–ป๋Š” ๊ณผ์ •์—์„œ ํ•ด๋‹น ์‚ฌ์ดํŠธ์— ๋งŽ์€ ์˜์กด์„ ๋‘์—ˆ๊ธฐ์— ๋“ฑ๋ก์ด ๋˜์–ด์žˆ์ง€ ์•Š์€ ์ขŒํ‘œ์— ๋Œ€ํ•ด์„œ๋Š” ์ƒ๋žตํ•˜์˜€์Šต๋‹ˆ๋‹ค.
2. Logstash๋ฅผ ์‚ฌ์šฉํ• ๋ ค๊ณ  ํ•˜์˜€์œผ๋‚˜, geo_point์— ๋Œ€ํ•œ ์ดํ•ด ๋ถ€์กฑ์œผ๋กœ Elastic search์—์„œ ๋ฐ”๋กœ Kibana๋ฅผ ์‚ฌ์šฉํ•˜์˜€์Šต๋‹ˆ๋‹ค.

Releases

No releases published

Packages

No packages published

Languages