Giter Club home page Giter Club logo

play-scrape's Introduction

Play-Scrape

A simple Play Store comments scraper written in Python

The aim of this project is to provide an easy yet functional module for scraping Google Play Store comments. I use this personally for text mining projects that I'll publish later.

Usage:

python play_scrape.py --pages <pages> --id <app_id> --output <outfile.json>

Where:

  • --pages are the number of pages to scrape, usually a page contains 40 reviews
  • --id is the app id, ex com.facebook.katana
  • --output is the name of the file where you want to store your results, default name is output.json

Example:

python play_scrape.py  --pages 10 --id posteitaliane.posteapp.apppostepay --output poste.json

__________.__                   _________                                  
\______   \  | _____  ___.__.  /   _____/ ________________  ______   ____  
 |     ___/  | \__  \<   |  |  \_____  \_/ ___\_  __ \__  \ \____ \_/ __ \ 
 |    |   |  |__/ __ \___  |  /        \  \___|  | \// __ \|  |_> >  ___/ 
 |____|   |____(____  / ____| /_______  /\___  >__|  (____  /   __/ \___  >
                    \/\/              \/     \/           \/|__|        \/ 
                    Author Ancarani Riccardo
[*] Downloading the first 10 pages from: posteitaliane.posteapp.apppostepay
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews
[*] Retrieved 40 reviews

Output:

The output is a JSON file with this structure:

{
  "results" : [ { "rating" : <rating>,
                  "review" : <review> } , ...
}

Note:

This script currently only supports Italian comments, the generalization will be quite easy and I'll do it in the next future. There is also a Jupyter Notebook in this repo, it's the first version of this script, really messy.

play-scrape's People

Contributors

riccardoancarani avatar

Watchers

James Cloos 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.