환경 켜기/끄기

  • Path:/api/v1/browser/start

  • Method:POST

  • Content-Type:application/json

  • 인터페이스 설명: 지정된 환경을 시작하는 데 사용됩니다. 시작 성공 후 브라우저 디버그 인터페이스를 획득하여 selenium 및 puppeteer 자동화 스크립트를 실행할 수 있습니다.

요청 파라미터

파라미터 이름 유형 필수 여부 샘플 문자열/기본값 설명
Session_ID array 373808cb37bd63f5f7d92415e736e85f,705cc4c139e69b729a2fd277f30e1863 환경 ID
isHeadless boolean 아니요 true

true:기본 브라우저 헤드리스 모드

false:브라우저 헤드 모드

args array 아니요 "args": ["--disable-extensions", "--blink-settings=imagesEnabled=false"] 시작 파라미터

단일 환경 요청 예시

{
    "Session_ID": [
        "373808cb37bd63f5f7d92415e736e85f"
    ],
    "args": [ 
        "--disable-extensions", 
        "--enable-logging", 
        "--v=1", 
        "--blink-settings=imagesEnabled=false" 
    ]
}

다중 환경 요청 예시

{
    "Session_ID": [
        "373808cb37bd63f5f7d92415e736e85f",
        "705cc4c139e69b729a2fd277f30e1863"
    ],
    "args": [ 
        "--disable-extensions", 
        "--blink-settings=imagesEnabled=false",
        "--interval-seconds=3" 
    ]
}

--disable-extensions 플러그인 비활성화

--blink-settings=imagesEnabled=false 이미지 로드 금지

--interval-seconds 각 브라우저 시작 간격 시간(초)

실행 성공 반환

{
    "message": "Success",
    "code": 0,
    "data": {
        "listid": [{
            "Session_Name": "비즈니스 환경 1",
            "Session_ID": "373808cb37bd63f5f7d92415e736e85f",
            "Group_Name": "default",
            "Actived_script_id": "O73808cb37bd63f5f7d92415e736e999",
            "Actiived_script_name": "스크립트 예시입니다",
            "Actiived_script_encode": "true",
            "Weblogin_Account_Count": "4",
            "Weblogin_Account_name": "aaa@163.com, aaa1@163.com, aaa2@163.com, aaa3@163.com",
            "Plugins_Count": "4",
            "Plugin_Id": "jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm,jjbnhpnlakcdgfnnldamfeinfmahhdlm",
            "template_id": "123456",
            "template_name": "틱톡 국제판",
            "browser_Path": "D:\\mbbrowser\\Chromium_x64\\chromium.exe",
            "browser_CDP_Port": 46973,
            "MBData_Path": "C:\\MBDATA\xxxxxxxxxx\xxxxxxxxxx\xxxxxxxxxxx",
            "Public_ip": "8.208.80.219",
            "Internel_ip": "192.168.225.69",
            "isDynamicIp": false,
            "StartPage": "about:blank",
            "proxyType": "socks5",
            "proxy_ip": "127.0.0.1",
            "proxy_port": "1080",
            "isHeadless": "true",
            "webdriver": "C:\\Users\\Administrator\\houniao\\Driver\\100\\chromedriver.exe", //현재 열린 환경의 커널에 따라 해당 커널 webdriver 드라이버 경로 반환
            "status": 0
        }],
        "total": 1
    }
}

POSTMAN을 사용하여 이 인터페이스 디버깅