lineageos-stats
An API to scrape all the relevant statistics from stats.lineageos.org.
Stats included
- Ranking of models in terms of number of installs
- Ranking of countries in terms of number of installs
- Total installs
- Last updated time
Installation
npm i lineageos-stats
Usage
const stats = ; // Total active installsstats;// 1572232 // Last updated time (elapsed since epoch)stats;// 1517756940000 // Active modelsstats;// [// { name: 'bacon', ranking: 1, installs: 69825 },// { name: 'i9300', ranking: 2, installs: 53035 },// { name: 'klte', ranking: 3, installs: 37613 },// { name: 'osprey', ranking: 4, installs: 37461 },// { name: 'mido', ranking: 5, installs: 35244 },// ...// ] // Active countriesstats;// [// { code: 'Unknown', ranking: 1, installs: 639729 },// { code: 'in', ranking: 2, installs: 115610 },// { code: 'br', ranking: 3, installs: 76996 },// { code: 'cn', ranking: 4, installs: 74099 },// { code: 'de', ranking: 5, installs: 65356 },// ...// ]