digitalmethodsinitiative / itunes-app-scraper Goto Github PK
View Code? Open in Web Editor NEWA simple Python scraper for the iTunes App Store
License: MIT License
A simple Python scraper for the iTunes App Store
License: MIT License
The following code:
`from itunes_app_scraper.scraper import AppStoreScraper
import pandas as pd
scraper = AppStoreScraper()
results = scraper.get_app_ids_for_query("mental health", page=2, num=50, country = 'us', lang='en')
app_details = scraper.get_multiple_app_details(results, sleep=0, lang = 'en')
df = pd.DataFrame(app_details)`
returns some of the app descriptions in a language that is not english. I was able to fix this issue by forking the page and hard-coding lines 190 to 192 of scraper.py to be:
url = "https://itunes.apple.com/lookup?%s=%s&country=%s&entity=software×tamp=%s" % (id_field, app_id, 'us', timestamp) else: url = "https://itunes.apple.com/lookup?%s=%s&country=%s&entity=software" % (id_field, app_id, 'us')
hi
I deployed an async version of the library
pip install async-itunes-app-scraper-dmi
Call to https://itunes.apple.com/lookup?id=283654982364450862376 results in
{"errorMessage": "Invalid value(s) for key(s): [itunesId]",
"queryParameters": {
"output": "json",
"callback": "A javascript function to handle your search results",
"country": "ISO-2A country code",
"limit": "The number of search results to return",
"term": "A search string",
"lang": "ISO-2A language code"
}
}
which is parsable JSON so works here but fails here with KeyError.
Draft of the fix #6
The node.js based scraper supports receiving the ratings histogram. Do you see a chance to add that support as well?
Thanks for your works on the project!
I think it require connect iTunes store.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.