Skip to content

Commit

Permalink
Merge pull request JoMingyu#138 from rossoft/feature/split_app_parse_dom
Browse files Browse the repository at this point in the history
split parse dom
  • Loading branch information
JoMingyu authored Jul 7, 2022
2 parents 8f20b7e + c947bf7 commit 0c36410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google_play_scraper/features/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ def app(app_id: str, lang: str = "en", country: str = "us") -> Dict[str, Any]:
except NotFoundError:
url = Formats.Detail.fallback_build(app_id=app_id, lang=lang)
dom = get(url)
return parse_dom(dom=dom, app_id=app_id, url=url)


def parse_dom(dom: str, app_id: str, url: str) -> Dict[str, Any]:
matches = Regex.SCRIPT.findall(dom)

dataset = {}
Expand Down

0 comments on commit 0c36410

Please sign in to comment.