๐ŸŒ DEV ์‚ฌ์šฉ์ž๋Š” ์–ด๋””์—์„œ ์˜ค๋Š”๊ฐ€?

8555 ๋‹จ์–ด mongometajsonstatistics
์ด๋ฏธ ์•Œ๊ณ  ๊ณ„์‹œ๊ฒ ์ง€๋งŒ dev.to์—๋Š” ๊ธฐ์‚ฌ์™€ ์‚ฌ์šฉ์ž๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” API๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‚ด๊ฐ€ ๊ฐ€์žฅ ์ข‹์•„ํ•˜๋Š” HTTP ํด๋ผ์ด์–ธํŠธhttpie๋กœ ์‹œ๋„ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

http https://dev.to/api/users/1



{
    "github_username": "benhalpern",
    "id": 1,
    "joined_at": "Dec 27, 2015",
    "location": "Brooklyn, NY",
    "name": "Ben Halpern",
    "profile_image": "https://res.cloudinary.com/practicaldev/image/fetch/s--DOU9qJSH--/c_fill,f_auto,fl_progressive,h_320,q_auto,w_320/https://thepracticaldev.s3.amazonaws.com/uploads/user/profile_image/1/f451a206-11c8-4e3d-8936-143d0a7e65bb.png",
    "summary": "A Canadian software developer who thinks heโ€™s funny.",
    "twitter_username": "bendhalpern",
    "type_of": "user",
    "username": "ben",
    "website_url": "http://benhalpern.com"
}


๋‚ด๊ฐ€ ์ฒ˜์Œ ์•Œ์•„์ฐจ๋ฆฐ ๊ฒƒ์€ id๊ฐ€ ์ž๋™ ์ฆ๊ฐ€๋˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
๋ช‡ ๋ฒˆ์˜ ์‹œ๋„ ๋์— dev.to: around 119000 ์˜ ์ด ์‚ฌ์šฉ์ž ์ˆ˜๋ฅผ ๋น ๋ฅด๊ฒŒ ์•Œ์•„๋ƒˆ์Šต๋‹ˆ๋‹ค.
๋ชจ๋“  ์‚ฌ์šฉ์ž์˜ ๊ณต๊ฐœ ๋ฐ์ดํ„ฐ๋ฅผ ๊ธ์–ด๋ชจ์•„ ๊ฐ€์ง€๊ณ  ๋†€์•„๋ณด์ž๋Š” ์ƒ๊ฐ์ด ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

์ด ๋ช…๋ น์œผ๋กœ ์‹œ๋„ํ•ด ๋ด…์‹œ๋‹ค:

for i in {1..119000}; do http https://dev.to/api/users/$i >> users.dev.to.json && echo "," >> users.dev.to.json && echo "https://dev.to/api/users/$i"; done


๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ๋ช‡ ์‹œ๊ฐ„ ๋™์•ˆ ์‹คํ–‰ํ•œ ํ›„ ๋งˆ์นจ๋‚ด JSON ํŒŒ์ผ์— ๋ชจ๋“  ์‚ฌ์šฉ์ž๋ฅผ ์–ป์—ˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” NoSQLBooster์„ ์‚ฌ์šฉํ•˜์—ฌ mongodb ์ปฌ๋ ‰์…˜์—์„œ JSON ํŒŒ์ผ์„ ๊ฐ€์ ธ์˜ด์œผ๋กœ์จ ๋๋‚ฌ์Šต๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ํ”„๋กœํ•„์—๋Š” ์ •๋ณด๊ฐ€ ๋งŽ์ง€ ์•Š์ง€๋งŒ ๊ทธ ์ค‘ joined_at ๋ฐ location ๋‘ ๊ฐ€์ง€๋ฅผ ์‚ดํŽด๋ณผ ๊ฐ€์น˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์‹œ๊ฐ„์ด ์ง€๋‚จ์— ๋”ฐ๋ผ ๋“ฑ๋ก ์ง„ํ–‰ ์ƒํ™ฉ์„ ๋ณด์—ฌ์ฃผ๋Š” ๋‹ค์ด์–ด๊ทธ๋žจ์ด ์žˆ์œผ๋ฉด ๋งค์šฐ ํฅ๋ฏธ๋กœ์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์–ธ์  ๊ฐ€๋Š” ํ•˜๊ฒ ์ง€๋งŒ ์ง€๊ธˆ์€ ์‚ฌ์šฉ์ž ์œ„์น˜์— ๋Œ€ํ•œ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

๋‘ ๊ฐœ์˜ ์ฟผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ ์‚ฌ๋žŒ๋“ค์˜ ์œ„์น˜์— ๋Œ€ํ•œ ํฐ ์ถ”์„ธ๋ฅผ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

db.getCollection("users.dev.to").aggregate(
    {"$group": {_id: "$location", count:{$sum:1}}}
).sort("-count")


๊ทธ๋Ÿฐ ๋‹ค์Œ ๋‹ค๋ฅธ ์ฟผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์œ„์น˜๋ณ„ ์‚ฌ๋žŒ ์ˆ˜๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.

db.getCollection("users.dev.to").find({"location": /\bdublin\b/i})


๊ฒฐ๋ก ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋Œ€๋ถ€๋ถ„์˜ ์‚ฌ์šฉ์ž(90%)๋Š” ์ž์‹ ์˜ ์œ„์น˜๋ฅผ โ€‹โ€‹์ฑ„์šฐ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
์ž์‹ ์˜ ์œ„์น˜๋ฅผ โ€‹โ€‹์ฑ„์šด ์‚ฌ์šฉ์ž์˜ 16.3%๋Š” USA์—์„œ ์™”์Šต๋‹ˆ๋‹ค.
5.8%๋Š” India์—์„œ ์™”์Šต๋‹ˆ๋‹ค.
4.9%๋Š” UK์—์„œ ์™”์Šต๋‹ˆ๋‹ค.
4%๋Š” Japan์—์„œ ์™”์Šต๋‹ˆ๋‹ค.
3.8%๋Š” Germany์—์„œ ์ž…๋‹ˆ๋‹ค.

์•„๋ž˜์—์„œ ์ „์ฒด ํ†ต๊ณ„๋ฅผ ์‚ดํŽด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.


#
๊ตญ๊ฐ€
์ง€์—ญ ๋˜๋Š” ๋„์‹œ
#์ง€์—ญ ๋˜๋Š” ๋„์‹œ
#๊ตญ๊ฐ€
%


1
๋ฏธ๊ตญ

1850๋…„
16.32%


๋‰ด์š• ํฌํ•จ
205



CA ํฌํ•จ
194



๋‰ด์š• ํฌํ•จ
147



์ƒŒํ”„๋ž€์‹œ์Šค์ฝ” ํฌํ•จ
137



ํ…์‚ฌ์Šค ํฌํ•จ
119



์‹œ์• ํ‹€ ํฌํ•จ
117



๋กœ์Šค์•ค์ ค๋ ˆ์Šค ํฌํ•จ
107



์‹œ์นด๊ณ  ํฌํ•จ
101



์›Œ์‹ฑํ„ด ํฌํ•จ
81



FL ํฌํ•จ
78



PA ํฌํ•จ
68



์„์‚ฌ ํฌํ•จ
67



AZ ํฌํ•จ
38



MI ํฌํ•จ
34



OH ํฌํ•จ
30


2
์ธ๋„

660
5.82%


๋ฐฉ๊ฐˆ๋กœ๋ฅด ํฌํ•จ
107



๋ธ๋ฆฌ ํฌํ•จ
103


์‚ผ
์˜๊ตญ

551
4.86%


๋Ÿฐ๋˜ ํฌํ•จ
258



์ž‰๊ธ€๋žœ๋“œ ํฌํ•จ
35



์Šค์ฝ”ํ‹€๋žœ๋“œ ํฌํ•จ
33



์›จ์ผ์Šค ํฌํ•จ
7


4
์ผ๋ณธ

451
3.98%


๋„์ฟ„ ํฌํ•จ
242


5
๋…์ผ

428
3.77%


๋ฒ ๋ฅผ๋ฆฐ ํฌํ•จ
128


6
๋ธŒ๋ผ์งˆ

301
2.65%

7
ํ”„๋ž‘์Šค

294
2.59%


ํŒŒ๋ฆฌ ํฌํ•จ
98


8
์บ๋‚˜๋‹ค

257
2.27%


ํ† ๋ก ํ†  ํฌํ•จ
107


9
๋‚˜์ด์ง€๋ฆฌ์•„

187
1.65%


๋ผ๊ณ ์Šค ํฌํ•จ
97


10
๋„ค๋œ๋ž€๋“œ

154
1.36%


์•”์Šคํ…Œ๋ฅด๋‹ด ํฌํ•จ
62


11
์ŠคํŽ˜์ธ

110
0.97%

12
์•„๋ฅดํ—จํ‹ฐ๋‚˜

109
0.96%

13
์ดํƒˆ๋ฆฌ์•„

102
0.90%

14
์ธ๋„๋„ค์‹œ์•„

92
0.81%

15
๋Ÿฌ์‹œ์•„

89
0.78%

16
๋ฉ•์‹œ์ฝ”

86
0.76%

17
ํ•„๋ฆฌํ•€ ์ œ๋„

85
0.75%

18
ํด๋ž€๋“œ

81
0.71%

19
์šฐํฌ๋ผ์ด๋‚˜

75
0.66%

20
ํฌ๋ฅดํˆฌ๊ฐˆ

63
0.56%

21
๋‚จ์•„ํ”„๋ฆฌ์นด

57
0.50%

22
ํŒŒํ‚ค์Šคํƒ„

56
0.49%

23
์น ๋ฉด์กฐ

55
0.49%

24
๋ฒจ๊ธฐ์—

53
0.47%

25
์ด์ง‘ํŠธ

52
0.46%

26
๋ฐฉ๊ธ€๋ผ๋ฐ์‹œ

50
0.44%

27
์ฝœ๋กฌ๋น„์•„

46
0.41%

28
๋ฃจ๋งˆ๋‹ˆ์•„

45
0.40%

29
์ผ€๋ƒ

45
0.40%

30
์Šค์œ„์Šค

45
0.40%

31
์˜ค์ŠคํŠธ๋ฆฌ์•„

43
0.38%

32
์ค‘๊ตญ

40
0.35%

33
๋…ธ๋ฅด์›จ์ด

38
0.34%

34
์•„์ผ๋žœ๋“œ

33
0.29%


์ด ์ฃผ์š” ์œ„์น˜(์œ„์— ๋‚˜์—ด๋จ)

6683
58.94%


๊ธฐํƒ€ ์œ„์น˜(๋ฏธ๋“ฑ๋ก)

4656
41.06%

์ด ์œ„์น˜

11339
100.00%
<null>
90260
80.80%
<empty>
10108
9.05%

์ด

111707
100%


Note: these numbers are one month old, but they give a good overview of the trends.



์ฝ์–ด ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ