For further actions, you may consider blocking this person and/or reporting abuse
Read next
Creating a Multicolored Star Rating Card Component
sahra 💫 -
🎩 JavaScript Magic: 20 Quirky Questions! 💫
Sh Raj -
Should I use Virtual Threads in Java?
Diogo Daniel Soares Ferreira -
Am I the only one who doesn't put parentheses around the parameters in Ruby method definitions?
Koichi Sasada -
Top comments (1)
When you get your
tweepy.Clientobject, you can specify your desired return type:docs.tweepy.org/en/stable/client.h...
The default is
Responsebut you can ask fordictinstead, e.g. setreturn_type=dictwhen you make your call totweepy.Client. This will cause your subsequent calls to return a standard python 3 dictionary. You should then be able to convert that dictionary to json using python'sjson.dumps:docs.python.org/3/library/json.html
Another option is to convert the
Responseobject to adict:docs.python.org/3/library/collecti...