Browse Source

Initial release v1.0-rc1

pull/1/head
KaKi87 1 year ago
parent
commit
40f6ec2892
5 changed files with 100 additions and 8 deletions
  1. +5
    -5
      LICENSE
  2. +32
    -3
      README.md
  3. +26
    -0
      gplay.js
  4. +16
    -0
      index.js
  5. +21
    -0
      package.json

+ 5
- 5
LICENSE View File

@@ -1,5 +1,5 @@
MIT License
Copyright (c) 2018 KaKi87
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License
Copyright (c) 2018 KaKi87
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 32
- 3
README.md View File

@@ -1,3 +1,32 @@
# KPlaySearch

KPlaySearch (KaKi's Google Play search engine) allows you to perform advanced G-Play search, using filters and sorting features.
# KPlaySearch
KPlaySearch (KaKi's Google Play search engine) allows you to perform advanced G-Play search, using filters and sorting features. [Demo](https://playsearch.kaki87.net/)
## Getting Started
### Prerequisites
- NodeJS
- Yarn
### Installing
```
yarn install
yarn start
```
## Built With
Node modules :
- [google-play-scraper](https://github.com/facundoolano/google-play-scraper) - GPlay API
- [Socket.IO](https://socket.io/) - Real time client/server
Web components :
- [FontAwesome](https://fontawesome.com/) - Icon pack
- [UIKit](https://getuikit.com/) - Front end framework
- [JavaScript Cookie](https://github.com/js-cookie/js-cookie) - JS cookie API
## Authors
**KaKi87 (Tiana Lemesle)** - *Initial work*
Special thanks to ribt, DotDotDot, TheDevKiller, Fomys and Guysmow from the *french* [CQSCMQPI](https://discord.gg/79JjWTF) Discord server.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

+ 26
- 0
gplay.js View File

@@ -0,0 +1,26 @@
import GPlay from 'google-play-scraper';
module.exports = {
search: (query, callback) => {
GPlay.search({
term: query.name,
num: query.number,
price: query.price,
fullDetail: true
})
.then(res => {
let i = 0;
res.forEach(app => {
GPlay.permissions({ appId: app.appId })
.then(permissionsList => {
app.permissions = permissionsList;
i++;
if(i === res.length)
callback(res);
})
.catch(err => console.log(err));
});
})
.catch(err => console.log(err));
}
};

+ 16
- 0
index.js View File

@@ -0,0 +1,16 @@
import Play from './gplay.js';
import express from 'express';
import http from 'http';
import socketio from 'socket.io';
const app = express();
app.use(express.static('public'));
const server = http.createServer(app);
server.listen(3593);
const io = socketio.listen(server);
io.on('connection', socket => {
socket.on('search', query => Play.search(query, res => socket.emit('res', res)));
});

+ 21
- 0
package.json View File

@@ -0,0 +1,21 @@
{
"name": "kplaysearch",
"version": "1.0.0",
"description": "Free, in-app free and ad free G-Play search",
"main": "index.js",
"author": "KaKi87",
"license": "MIT",
"dependencies": {
"express": "^4.16.3",
"google-play-scraper": "^6.2.0",
"http": "^0.0.0",
"socket.io": "^2.1.1"
},
"devDependencies": {
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0"
},
"scripts": {
"start": "node start.js"
}
}

Loading…
Cancel
Save