gologinapp / pygologin

REST API provides programmatic access to GoLogin App. Create a new browser profile, get a list of all browser profiles, add a browser profile and running
Other
61 stars 42 forks source link

Can't create custom profile with RAM, CPU threads #45

Open Foxtrod89 opened 11 months ago

Foxtrod89 commented 11 months ago

API ignores calls for custom CPU Threads, RAM fields.

profile_id = gl.create({
    "name": 'macOS_2019',
    "notes": "Freshest_profile",
    #"browserType": "safari",
    "os": 'mac',
    "googleServicesEnabled": True,
    "navigator": {
        "language": 'en-US',
        "userAgent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15',
        "resolution": '3072x1920',
        "platform": 'mac',
        "cpu": '16',
        "ram":'32',
    },
    'proxyEnabled': True,
    'proxy': {
        'mode': 'gologin',
        'autoProxyRegion': 'us',
        # 'host': '',
        # 'port': '',
        # 'username': '',
        # 'password': '',
    },
    "webRTC": {
            "mode": "disabled",
            "enabled": False,
            "customize": True,
            "fillBasedOnIp": True
          },
});
Screen Shot 2023-08-02 at 2 18 32 PM
nikita5526 commented 11 months ago

@Foxtrod89 Thanks for your feedback! We made changes to the repo, pull to the new version and everything should work correctly. The deviceMemory parameter is used to specify the allocated RAM, and the hardwareConcurrency parameter is used to specify the number of threads. I want to remind you that the value of allocated RAM must be one of the following: 1, 2, 4, 6, 8