-
Notifications
You must be signed in to change notification settings - Fork 15
Description
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