File size: 900 Bytes
1a49592
 
 
 
 
8e9ecf2
 
1a49592
 
 
 
 
 
4625fb0
1a49592
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8e9ecf2
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import random
from datetime import datetime, timedelta, timezone
from constants.headers import OPENAI_GET_HEADERS

class ProofWorker:
    def __init__(self):
        pass

    def get_parse_time(self):
        now = datetime.now()
        tz = timezone(timedelta(hours=8))
        now = now.astimezone(tz)
        time_format = "%a %b %d %Y %H:%M:%S"
        return now.strftime(time_format) + " GMT+0800 (中国标准时间)"

    def get_config(self):
        cores = [8, 12, 16, 24]
        core = random.choice(cores)
        screens = [3000, 4000, 6000]
        screen = random.choice(screens)
        return [
            str(core) + str(screen),
            self.get_parse_time(),
            4294705152,
            0,
            OPENAI_GET_HEADERS["User-Agent"],
        ]

if __name__ == "__main__":
    worker = ProofWorker()
    config = worker.get_config()
    print("Config:", config)