Created
August 14, 2019 07:20
-
-
Save amiryousefi/061bbfde4426055b5e467d8dbfba36a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all_user_details = [] | |
for participant in all_participants: | |
all_user_details.append( | |
{"id": participant.id, "first_name": participant.first_name, "last_name": participant.last_name, | |
"user": participant.username, "phone": participant.phone, "is_bot": participant.bot}) | |
with open('user_data.json', 'w') as outfile: | |
json.dump(all_user_details, outfile) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment