Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Non-Bug] PIME Releases Download Counts 下载量统计 #791

Closed
dongyuwei opened this issue Nov 23, 2023 · 1 comment
Closed

[Non-Bug] PIME Releases Download Counts 下载量统计 #791

dongyuwei opened this issue Nov 23, 2023 · 1 comment
Labels

Comments

@dongyuwei
Copy link

Hello各位,我使用Google Apps Script统计了一下PIME各个发布版的下载量:
https://docs.google.com/spreadsheets/d/1ja5uNsA7SSFtqzYV7KnMoQcIwNl6SZGcz3cX7h2Bji4/edit?usp=sharing

截止到2023-11-23 日,总共下载量为 397810,非常可观的下载量,与项目的stars数量完全不是一个数量级。说明PIME很多用户应该都不是Github用户,只下载没有点击star。我的一个感想是现在并不是软件生产过剩,而是很多软件都缺乏很好的市场推广。
数据来源是: https://api.github.com/repos/EasyIME/PIME/releases

2023-01-20 v1.3.0-stable 20218
2021-12-14 v1.3.0-beta2 27237
2020-06-01 v1.3.0-beta 35981
2020-04-19 v1.3.0-alpha2 5100
2020-04-08 v1.3.0-alpha1 2053
2018-12-01 v1.2.0-beta1 27175
2017-05-20 v1.1.0 156220
2017-05-13 v1.0.0 12671
2016-12-17 v0.16.1 34917
2016-11-27 v0.16 7201
2016-09-27 v0.15.2 12349
2016-09-24 v0.15.1 1804
2016-09-24 v0.15 432
2016-07-16 v0.14 15303
2016-06-28 v0.13.1 5837
2016-06-27 v0.13 1976
2016-03-11 v0.12 18305
2016-03-02 v0.11 2249
2016-02-27 v0.10 970
2016-02-13 v0.09 3055
2016-02-11 v0.08 2297
2016-02-11 v0.07 128
2016-02-09 v0.06 2496
2016-02-08 v0.05 857
2016-02-07 v0.04 158
2016-02-02 v0.03 342
2016-02-01 v0.02 154
2015-08-16 v0.01 325
     
2023-11-23 Total 397810

统计脚本如下:

function onOpen() {
  var ui = SpreadsheetApp.getUi();
  ui.createMenu('Github PIME Stat')
    .addItem('PIME Download Counts', 'getDownloadStats')
    .addToUi(); 
}

function getDownloadStats() {
  var url = "https://api.github.com/repos/EasyIME/PIME/releases";
  var response = UrlFetchApp.fetch(url, { 'muteHttpExceptions': true });
  var json = response.getContentText();
  var releases = JSON.parse(json);
  var msiDownloadsTotal = 0;

  var sheetName = 'PIME';
  var sheet = SpreadsheetApp.getActive().getSheetByName(sheetName);
  sheet.getDataRange().clearContent();

  for (var i = 0; i < releases.length; i++) {
    for (var j = 0; j < releases[i].assets.length; j++) {
      msiDownloadsTotal += releases[i].assets[j].download_count;
      sheet.appendRow([
        Utilities.formatDate(new Date(releases[i].assets[j].updated_at), "GMT", "yyyy-MM-dd"), // 2022-10-24T08:27:52Z
        releases[i].tag_name,
        releases[i].assets[j].download_count]);

    }
  }
  sheet.appendRow([' ']);
  sheet.appendRow([Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd"), "Total", msiDownloadsTotal]);
}
@ottokang
Copy link
Contributor

一般使用者下載是不會點擊 Star 的,除非要參與開發才會需要,這個下載量其實也普普而已,主要還是微軟新注音加減可以用,付費的還有自然輸入法可以替代,有覺得想要更方便的使用者才會來用新酷音。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants