Skip to content

Commit

Permalink
split parse dom
Browse files Browse the repository at this point in the history
  • Loading branch information
rossoft committed Jul 5, 2022
1 parent 2caddd0 commit 109dfb2
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 109dfb2

Please sign in to comment.