Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_pin #205

Open
MnLgt opened this issue May 16, 2024 · 0 comments
Open

load_pin #205

MnLgt opened this issue May 16, 2024 · 0 comments

Comments

@MnLgt
Copy link

MnLgt commented May 16, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant