Есть сайт который фиксирует время заполнения полей профиля, полей 9.
email_acquired_timestamp=1670073915028&start_completed_timestamp=1670073873777&start_timestamp=1670073872044&tos_acquired_timestamp=1670073916700&name_acquired_timestamp=1670073883629&birthday_acquired_timestamp=1670073889624&cp_acquired_timestamp=1670073907835&pw_acquired_timestamp=1670073913436&gender_acquired_timestamp=1670073897572
Вот в такой формате выходят данные после отправки заполнения.
Как на Python сделай данную генерацию timestamp
Мой код
def __init__(self):
data = get_info_account()
number = get_number()
n = random.randint(100,1000)
self.id = uuid.uuid4()
self.email = number['phone']
self.activation_id = number['activation_id']
self.password = data['password']
self.fName = data['firstname']
self.lName = data['lastname']
self.birthday = "19%s-%s-%s"%(random.randint(91,99), random.randint(1,12), random.randint(1,28))
self.access_token = ""
self.user_agent = ''
self.start_timestamp = datetime.now()
self.completed_timestamp = datetime.now()+timedelta(minutes=4,microseconds=n)
self.name_timestamp = datetime.now()+timedelta(minutes=7)
self.birthday_timestamp = datetime.now()+timedelta(minutes=9)
self.gender_timestamp = datetime.now()+timedelta(minutes=13)
self.cp_timestamp = datetime.now()+timedelta(minutes=15)
self.pw_timestamp = datetime.now()+timedelta(minutes=16)
self.email_timestamp = datetime.now()+timedelta(minutes=18)
self.tos_timestamp = datetime.now()+timedelta(minutes=20)
def register(self):
data = sorted([
('phone',self.email),
('firstname',self.fName),
('lastname',self.lName),
('gender','F'),
('password',self.password),
('allow_local_pw','true'),
('birthday',self.birthday),
('session_id','eb6b65bf-83a1-402a-94af-59a2329fcb77'),
('consent_standards_test_group','test'),
('play_service_version','-1'),
('additional_email_acquired_timestamp',str(self.email_timestamp.timestamp()).replace('.','')),
('start_completed_timestamp',str(self.completed_timestamp.timestamp()).replace('.','')),
('start_timestamp',str(self.start_timestamp.timestamp()).replace('.','')),
('tos_acquired_timestamp',str(self.tos_timestamp.timestamp()).replace('.','')),
('name_acquired_timestamp',str(self.name_timestamp.timestamp()).replace('.','')),
('birthday_acquired_timestamp',str(self.birthday_timestamp.timestamp()).replace('.','')),
('cp_acquired_timestamp',str(self.cp_timestamp.timestamp()).replace('.','')),
('pw_acquired_timestamp',str(self.pw_timestamp.timestamp()).replace('.','')),
('gender_acquired_timestamp',str(self.gender_timestamp.timestamp()).replace('.','')),