No commit activity in last 3 years
No release in over 3 years
Uses Nokogiri to scrape app search results on the Google Play app search results page. Returns results as Ruby objects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.14.1

Runtime

~> 2.3.0
>= 1.5.0
 Project Readme

Google Play Store Scraper

This gem allows you to search the Google Play App store by means of scraping the html search results. An example search result can be seen here

Usage

Start with:

gem install google_play_scraper

or

gem 'google_play_scraper', '~> 0.0.1'

Doing a search

search = GooglePlayScraper::Search.new('Angry Birds')
results = search.run # an array of GooglePlayScraper::App

You can customize the results you get back by passing a hash as the second parameter to GooglePlayScraper::Search constructor.

module GooglePlayScraper
  module SearchOptions
    CATEGORY = :c
    LANGUAGE = :hl
    APPLY_SORTING = :sort
    SAFE_SEARCH = :safe
    NUMBER_OF_RESULTS = :num
  end
end

DEFAULT_OPTIONS = {
  CATEGORY => 'apps',
  LANGUAGE => 'en',
  APPLY_SORTING => 1, # 0 means no sorting
  SAFE_SEARCH => 0, # apply safesearch to results
  NUMBER_OF_RESULTS => 10 # number of results to display
}

Your gem doesn't do __ >:(

Create a fork request and provide some kind of rspec test for it - otherwise I might break it accidentially in future.

License

MIT