Итак, я хочу, чтобы мой текстовый файл помещал только мои числа, но в строках внутри моего текстового файла. Пока у меня есть то, что мой код поместил в текст, но все, что я хочу, это отсортировать его друг на друга
import requests
from bs4 import BeautifulSoup
import json
json_data = '''
{"previousPageCursor":null,"nextPageCursor":"23971776_1_0c424f10e6a8a73392287b04ef20267c","data":[{"buildersClubMembershipType":"None","userId":29661084,"username":"HeartlessGod","displayName":"HeartlessGod"},{"buildersClubMembershipType":"None","userId":2736666,"username":"thunderbolt777","displayName":"thunderbolt777"},{"buildersClubMembershipType":"None","userId":9509309,"username":"FlyScript","displayName":"FlyScript"},{"buildersClubMembershipType":"None","userId":9933671,"username":"XcRaZeD","displayName":"XcRaZeD"},{"buildersClubMembershipType":"None","userId":1484736,"username":"dodo212","displayName":"dodo212"},{"buildersClubMembershipType":"None","userId":10026270,"username":"wassup99","displayName":"wassup99"},{"buildersClubMembershipType":"None","userId":559756,"username":"jack593","displayName":"jack593"},{"buildersClubMembershipType":"None","userId":6160107,"username":"spectacularmario","displayName":"spectacularmario"},{"buildersClubMembershipType":"None","userId":7706434,"username":"dustyscoobydoo","displayName":"dustyscoobydoo"},{"buildersClubMembershipType":"None","userId":1335986,"username":"dooter","displayName":"dooter"}]}
'''
test = (requests.get("https://groups.roblox.com/v1/groups/" + str(650266) + "/roles/" + str(7505671) + "/users"))
outfile = open(r"D:\untitled\Lib/tester.txt", "w")
#outfile.write(str(test.text.encode('UTF-8')))
parsed_data = parsed_data = requests.get("https://groups.roblox.com/v1/groups/" + str(650266) + "/roles/" + str(7505671) + "/users").json()
for d in parsed_data['data']:
outfile.write(str(d['userId']))