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
If you're getting the error about 'props' being an invalid key
Change line 727 in Pinterest.py to the following