I am trying to comment with the comment() method, when I run my code I get this error:
File "E:\Python Apps\Pins_Commenter\venv\lib\site-packages\py3pin\Pinterest.py", line 526, in load_pin pinJsonData = json.loads(s.contents[0])['resources']['data']['PinResource'] KeyError: 'data'
here is my code:
self.pinterest = Pinterest(email='email', username='username', password='password') ............ self.pinterest.login() self.pinterest.comment(pin_id='589901251199423218', text='test test')
it gives me that login was successful and then throws that KeyError
I am trying to comment with the
comment()
method, when I run my code I get this error:File "E:\Python Apps\Pins_Commenter\venv\lib\site-packages\py3pin\Pinterest.py", line 526, in load_pin pinJsonData = json.loads(s.contents[0])['resources']['data']['PinResource'] KeyError: 'data'
here is my code:
self.pinterest = Pinterest(email='email', username='username', password='password') ............ self.pinterest.login() self.pinterest.comment(pin_id='589901251199423218', text='test test')
it gives me that login was successful and then throws that
KeyError