How to get Threads data using Python?

How to get Threads data using Python?