Wrong json response syntax #71
Closed
tanmaygaikwad723
started this conversation in
General
Replies: 1 comment
-
Well the response is a python Dict not a JSON object. import json
from tweeterpy import TweeterPy
twitter = TweeterPy()
tweets = twitter.get_user_tweets("elonmusk",total=50)
json_response = json.dumps(tweets.get("data")) # this is JSON response |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The reponse i am getting isn't getting validated or accepted by any json viewer or validator
Beta Was this translation helpful? Give feedback.
All reactions