lljz66's picture
Upload google_play_scraper/features/developer.py
afdb61e verified
Raw
History Blame Contribute Delete
591 Bytes
"""Extract developer information."""
from typing import Dict
from google_play_scraper.utils.http_utils import get
from google_play_scraper.constants.google_play import DEVELOPER_URL_FORMAT
def developer(developer_id: str, lang: str = "en", country: str = "us") -> Dict:
"""Get developer details and their apps."""
url = DEVELOPER_URL_FORMAT.format(developer_id=developer_id, lang=lang, country=country)
response = get(url)
return {
"name": response.get("name"),
"description": response.get("description"),
"apps": response.get("apps", [])
}