Simple API interface to Market Bot (a Google Play store scraper)
840
Market Bot API is a google store scraper (market_bot) exposed as a JSON API.
Install dependancies
bundle install
Run the development server
rackup
GET /app/:id
:id - The android namespace for the applicationGET /app/com.snapchat.android
--
{
"success": true,
"app": {
"market_id":"com.snapchat.android",
"title":"Snapchat",
"category":"Social",
"developer":"Snapchat, Inc.",
"installs":"100,000,000 - 500,000,000",
"price":"0",
"votes":"2161924",
"stars":"4.0",
"stars_distribution":{
"5":1216009,
"4":379723,
"3":236048,
"2":118509,
"1":211632
},
"updated":"November 17, 2014",
"content_rating":"Medium Maturity",
"icon_url":"https://lh4.ggpht.com/vdK_CsMSsJoYvJpYgaj91fiJ1T8rnSHHbXL0Em378kQaaf_BGyvUek2aU9z2qbxJCAFV=w300",
"image_url":"https://lh4.ggpht.com/vdK_CsMSsJoYvJpYgaj91fiJ1T8rnSHHbXL0Em378kQaaf_BGyvUek2aU9z2qbxJCAFV=w300"
}
}
GET /developer/:id
:id - The android developer name (capitalization and entities matter)GET /developer/Color+Tiger
--
{
"success": true,
"developer_id":"Color+Tiger",
"apps": [
{
"stars":"4.2",
"title":"Smart Thermometer",
"price":"Free",
"developer":"Color Tiger",
"market_id":"com.colortiger.thermo",
"market_url":"https://play.google.com/store/apps/details?id=com.colortiger.thermo&hl=en"
},
{
"stars":"4.6",
"title":"Smart IR Remote - AnyMote",
"price":"$7.90",
"developer":"Color Tiger",
"market_id":"com.remotefairy",
"market_url":"https://play.google.com/store/apps/details?id=com.remotefairy&hl=en"
},
{
"stars":"4.0",
"title":"AnyMote - Smart TV Remote",
"price":"Free",
"developer":"Color Tiger",
"market_id":"com.remotefairy4",
"market_url":"https://play.google.com/store/apps/details?id=com.remotefairy4&hl=en"
},
{
"stars":"4.5",
"title":"Smart IR Remote for HTC One",
"price":"$11.33",
"developer":"Color Tiger",
"market_id":"com.remotefairy2",
"market_url":"https://play.google.com/store/apps/details?id=com.remotefairy2&hl=en"
}
]
}
}
Supported by market_bot, but not currently implemented in this API.
Supported by market_bot, but not currently implemented in this API.
This repository comes with a valid Dockerfile for building this service as a docker container.
docker build -t market_bot_api .
Once you have built the market_bot_api container you can experiment with docker clustering using the fig definition located in cluster-demo. The cluster is built on consul, registrator, and consul-templates.
fig up -d
http://localhost:8500http://localhost:8080http://localhost:8080/hostnameNOTE: Consul may take a few minutes to start up. When you can see the services listed on the main page it's ready.
fig scale marketbot=4
fig scale marketbot=1
Content type
Image
Digest
sha256:f7d53783a…
Size
162.1 MB
Last updated
over 11 years ago
docker pull galloplabs/market-bot-api