Skip to content

load_pin #205

@MnLgt

Description

@MnLgt

If you're getting the error about 'props' being an invalid key

Change line 727 in Pinterest.py to the following

  • PWS_INITIAL_PROPS instead of PWS_DATA
  • Remove the 'props' key.
for s in scripts:
    if "id" in s.attrs and s.attrs["id"] == "__PWS_INITIAL_PROPS__":

        pinJsonData = json.loads(s.contents[0])["initialReduxState"][
            "resources"
        ]["PinResource"]
        pinJsonData = pinJsonData[list(pinJsonData.keys())[0]]["data"]
        return pinJsonData

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