Skip to content

Semantics fails #2

@beinoriusju

Description

@beinoriusju

As of 2019 semantics have changed and accessing page elements with class queries won't work. Good news is Google Play has Linked Data JSON available. Below is a function to parse information.

def getData(soup):
    json_data = soup.find( 'script', { 'type': 'application/ld+json' } )

    return json.loads(json_data.get_text())

Here is an example of application/ld+json contents https://gist.github.com/beinoriusju/36566ac3a57e41680af80186cb16703e

BTW: Thanks for sharing your code. It helped me with my task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions