Coder Social home page Coder Social logo

storescraper's Introduction

Description

StoreScraper is a PHP scraper for the Google Play store and Apple App store that provides the following information about an application:

  • Last update date
  • File size of the application package
  • Application version

Requirements

  • php5
  • php5-curl

Usage

Android Application

<?php

include("storeScraper.class.php");
$snapchat = storeScraper::scrapePlayStore("com.snapchat.android");

if(!$snapchat) {
    echo "Failed to get Google Play Store data for the application.";
} else {
    echo "Last updated: " . date("d/m/Y", $snapchat['last_update']) . "<br/>";
    echo "Latest version: " . $snapchat['version'] . "<br/>";
    echo "File size: " . $snapchat['file_size'] . " MB";
}

?>

The application name can be found in the Google Play store URL for the application, for example:

https://play.google.com/store/apps/details?id=com.snapchat.android
                                             |______App_Name______|

Note: Some Android applications provide different application packages depending on the device platform. This causes the latest version to display as "Varies with device" and the resulting file size is NULL.

iOS Application

<?php

include("storeScraper.class.php");
$snapchat = storeScraper::scrapeAppStore("Snapchat", 447188370);

if(!$snapchat) {
    echo "Failed to get Apple App Store data for the application.";
} else {
    echo "Last updated: " . date("d/m/Y", $snapchat['last_update']) . "<br/>";
    echo "Latest version: " . $snapchat['version'] . "<br/>";
    echo "File size: " . $snapchat['file_size'] . " MB";
}

?>

The application name and id can be found in the Apple App store URL for the application, for example:

https://itunes.apple.com/us/app/Snapchat/id447188370
                               |App_Name| |_App_ID__|

Disclaimer

This repository is in no way affiliated with Google™ or Apple Inc™.

storescraper's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.