play-scraper | web scraper to retrieve application data | Scraper library
kandi X-RAY | play-scraper Summary
kandi X-RAY | play-scraper Summary
A web scraper to retrieve application data from the Google Play Store.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a collection from a collection
- Get a collection
- Parse multiple apps
- Extract app id from url
- Parse app details
- Parse screenshot URL
- Parse additional information
- Parse application details
- Search for a given query
- Parse cluster card info
- Perform a search query
- Play Scratch
- Get a specific developer
- Return a list of similar results
- Return a list of similar apps
- Return suggestions for the given query
- Get suggestions for a given query
- Get details for an app
- Returns details about an application
- Get a list of available categories
- Returns a dictionary of categories
play-scraper Key Features
play-scraper Examples and Code Snippets
from google_play_scraper import app
result = app(
'com.nianticlabs.pokemongo',
lang='en', # defaults to 'en'
country='us' # defaults to 'us'
)
print(result)
In [8]: reviews = driver.find_element_by_xpath("//h3[. = 'User reviews']/following-sibling::div[1]")
In [9]: soup = BeautifulSoup(reviews.get_attribute("outerHTML"), "lxml")
In [10]: for review in soup.div.find_all("div", jscontroller=Tr
print(play_scraper.collection(
collection='COMMUNICATION',
category='TOP COMMUNICATION APPS',
results=5,
page=1))
pip3 install play-scraper -U
Community Discussions
Trending Discussions on play-scraper
QUESTION
I have never used node.js (only PHP) but found a node module, but I am already trying to figure this issue for 3 hours now.
I use this module: Play Scraper
They run it with this code, which works great from SSH console
...ANSWER
Answered 2020-Aug-12 at 16:13You need to consider several things about working with JavaScript. Everything you do which is IO is generally non blocking, unless specified. When using a callback or a then
(called a Promise) the code will not wait for any callback before continuing to the next statement. JavaScript in recent years made this much easier to understand with async await syntax sugar.
The best way to fix you code is to implement this async await syntax:
QUESTION
I am modifying the play-scraper API to scrape play-store app details. It uses BeautifulSoup
to parse HTML pages [reference].
I am particularly interested in all the additional information available for an app as shown in the screenshot below. (The above screenshot is taken from this app.)
I am stuck at extracting the list of permissions that an app asks for (shown in the above figure) because the View details
URL under Permissions
is as follows.
ANSWER
Answered 2020-Jun-24 at 19:44If I understand the question correctly you are trying to scrape the data from a modal. And when the website loads for the first time these modals data aren't available inside html. They are fetched after you click the view details button. That's why the parser doesn't get the data inside the modal, in your case the permission informations. So this is the reason of your problem.
Now about the solution, one possible solution could be achieved by using the Selenium and chromedriver by performing click event on the view details text and then fetching the modal data. Have a look at this link to get an idea.
Update: To get an idea about the solution using Selenium and chromedriver consider the following code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install play-scraper
You can use play-scraper like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page