5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Qiita記事のタグ傾向の調査

Last updated at Posted at 2023-04-17

はじめに

最近Qiita記事にお世話になる(技術参考にさせていただく)ことが多くなり、記事数が多いタグがトレンドなのだろうと盲目的に思っていた。しかし、それは本当なのだろうかとふと疑問が湧いてきた。
Qiitaには無料で利用できるAPIが提供されているため、それを活用して検証してみようと思う。

結果

PythonやAWSなどの上位タグは、最新投稿でも多く使われる傾向があった。
しかしながら、ChatGPTのようなトレンドであるタグは上位タグには出現していないことが明らかになった。
上位タグは飽く迄も累積値であり、直近タグ付けされた件数(トレンド)とはイコールにはならない結果となった。
上位10位を下表に示す。

利用した技術

Qiita API
・GET /api/v2/tags
 タグされている記事数を得られるAPI
  API例)https://qiita.com/api/v2/tags?page=1&per_page=100&sort=count
・GET /api/v2/items
 記事の一覧を得られるAPI
  API例)https://qiita.com/api/v2/items?page=1&per_page=100
Qiita APIの仕様は以下を参照。
Qiita API v2ドキュメント - Qiita:Developer

Node-RED
Node-REDのフロー図は以下。

iv.JSON
[{"id":"f8f08e094293f476","type":"tab","label":"フロー 1","disabled":false,"info":"","env":[]},{"id":"daceab50ed6b8fd9","type":"inject","z":"f8f08e094293f476","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":160,"wires":[["7701bc6d77b9e6b2","224e0c3c3e25a44e","01d1623d3607e886","352512db8efe40f5","8e230443cc02ef1c","6713f6e8fe13eb67"]]},{"id":"7701bc6d77b9e6b2","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/tags?page=1&per_page=100&sort=count","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":40,"wires":[["5c362b4ddea6c555"]]},{"id":"5c362b4ddea6c555","type":"debug","z":"f8f08e094293f476","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":40,"wires":[]},{"id":"224e0c3c3e25a44e","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items?page=1&per_page=100","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":120,"wires":[["cb9cf9bd54738a2f"]]},{"id":"01d1623d3607e886","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items?page=2&per_page=100","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":160,"wires":[["2e5fd056c9548ea7"]]},{"id":"352512db8efe40f5","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items?page=3&per_page=100","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":200,"wires":[["423d276457da4820"]]},{"id":"8e230443cc02ef1c","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items?page=4&per_page=100","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":240,"wires":[["a44c7d6c5c2e24f5"]]},{"id":"6713f6e8fe13eb67","type":"http request","z":"f8f08e094293f476","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items?page=5&per_page=100","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":370,"y":280,"wires":[["377b68b9933162f9"]]},{"id":"cb9cf9bd54738a2f","type":"debug","z":"f8f08e094293f476","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":120,"wires":[]},{"id":"2e5fd056c9548ea7","type":"debug","z":"f8f08e094293f476","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":160,"wires":[]},{"id":"423d276457da4820","type":"debug","z":"f8f08e094293f476","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":200,"wires":[]},{"id":"a44c7d6c5c2e24f5","type":"debug","z":"f8f08e094293f476","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":240,"wires":[]},{"id":"377b68b9933162f9","type":"debug","z":"f8f08e094293f476","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":280,"wires":[]}]

おわりに

以下に課題を記載する。
・今回、最新投稿の500件を対象としたが、母数を多くすることで分析の精度を上げたい
・APIから取得したデータの整形、集計、分析に手作業が多く、効率化を図りたい

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?