JoMingyu / google-play-scraper

Google play scraper for Python inspired by <facundoolano/google-play-scraper>
MIT License
757 stars 206 forks source link

[FEAT-REQ] split app method for parsing only code #137

Closed rossoft closed 2 years ago

rossoft commented 2 years ago

We have our own engine for doing HTTP Requests. It would be nice if app() method was split. Then we would use directly parse_dom() method from our side

def app(app_id: str, lang: str = "en", country: str = "us") -> Dict[str, Any]:
    url = Formats.Detail.build(app_id=app_id, lang=lang, country=country)

    try:
        dom = get(url)
    except NotFoundError:
        url = Formats.Detail.fallback_build(app_id=app_id, lang=lang)
        dom = get(url)
    parse_dom(dom)
JoMingyu commented 2 years ago

It released at version 1.2.0. Thank you so much.