Create New Pin ErrorSee original GitHub issue
I tried to make a new PIN, but an error. this is my script
# -*- coding: utf-8 -*- from py3pin.Pinterest import Pinterest def test(): username = '' password = '' email = '' # cred_root is the place the user sessions and cookies will be stored you should specify this to avoid permission issues cred_root = 'cred_root' pinterest = Pinterest(email=email, password=password, username=username, cred_root=cred_root) board_id = '854698904221395783' image_url = '25061712.jpg' description = 'description here' title = 'title test' link = 'https://pricesm.com' return pinterest.pin(board_id=board_id, image_url=image_url, description=description, title=title, link=link) if __name__ == '__main__': test()
and this error occurred
Traceback (most recent call last): File "tester.py", line 22, in <module> test() File "tester.py", line 19, in test return pinterest.pin(board_id=board_id, image_url=image_url, description=description, title=title, link=link) File "/home/crabs/Documents/gameplay/py3Pinter/py3pin/Pinterest.py", line 325, in pin return self.post(url=PIN_RESOURCE_CREATE, data=data).json() File "/home/crabs/Documents/gameplay/.py3PinEnv/lib/python3.6/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
anyone can help?
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
yes, that was my mistake. now it works well. You can continue now.
That is already there, even before the change, probably you have some local change, or some branch is not merged. https://github.com/bstoilov/py3-pinterest/pull/25/commits/f5cbcc3b3097098965182a196cf3ede510fd47a4#diff-7725233d73b703633c5f4f0a2109ccc7L248
or am I missing something, it seems to work on my side.