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

ISsue in Pinterest demo #4

Open
himanshim opened this issue Apr 16, 2019 · 0 comments
Open

ISsue in Pinterest demo #4

himanshim opened this issue Apr 16, 2019 · 0 comments

Comments

@himanshim
Copy link

I am getting an error when using the wrapper for Pinterest -


TypeError Traceback (most recent call last)
in ()
1 # You can use username to search for a single user
2 username = "Maanshi"
----> 3 single_user_graph = pinterest.fetch_pinterest_user_by_username(graphipy.create_graph(), username)

~\AppData\Local\Continuum\anaconda3\lib\site-packages\graphipy\api\pinterest_api.py in fetch_pinterest_user_by_username(self, graph, username)
48 def fetch_pinterest_user_by_username(self, graph, username):
49 result = self.get_single_user(username)
---> 50 user = PinterestUser(result["data"])
51 graph.create_node(user)
52 return graph

~\AppData\Local\Continuum\anaconda3\lib\site-packages\graphipy\api\pinterest_api.py in init(self, result)
253 class PinterestUser(Node):
254 def init(self, result):
--> 255 label = result["first_name"] + " " + result["last_name"]
256 Node.init(self, result["id"], label, "user")
257 self.username = result["username"]

TypeError: 'NoneType' object is not subscriptable

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