Ruby Script parser Google Play and get information about application
- Clone repo
git clone https://github.com/kmaksimovv/parser_play_google.git
. bundle install
.
- Open file
.env
and settings for connection for base. - Run command
dotenv
for export ENV Environment Variables. - Run script
ruby database_setup.rb
. This script created database, table and columns.
- Run script
ruby main.rb 'href to application'
.
$ For example, ruby main.rb https://play.google.com/store/apps/details?id=com.idamob.tinkoff.android
- Run script,
ruby app_history_ratings.rb 'name app' 'count last ratings'
$ For example, ruby app_history_ratings.rb tinkoff 10
Bug reports and pull requests are welcome on GitHub at https://github.com/kmaksimovv/parser_play_google
.
- Run server.rb
$ For example, run command
curl -i -X GET -H "Content-Type: application/json" http://localhost:4567/api/v1/apps
Response to json:
[
{
"id": 1,
"name": "tinkoff",
"category": "Finance",
"dowload_count": "388982",
"author": "https://www.tinkoff.ru",
"author_email": "[email protected]",
"created_at": "2019-07-09 22:02:21 +0400"
}
]