移動端爬蟲--項目實踐loach--API(六)

loach http api

  • 為什么要提供一組api來啟動程序

    1. loach本身設計為任務驅(qū)動模型,需要有新的任務才能是loach繼續(xù)運行偷霉。所以使用http來提供新的任務虏辫。
    2. 最初是沒有這組API的,每次啟動loach都需要啟動若干appium實例(wifi模式還需要建立adb連接)汰翠,繁瑣的操作另每次重啟都苦不堪言龄坪。
  • HTTP API

    1. 添加設備 POST

      <url>/douyin/task/device/

      body

      {
        "platform": "7.0",                  android版本
        "device_name": "TRT-AL00",          設備型號:設置-關于手機查看
        "device_type": "huawei-7",          
        "ip": "192.168.1.103",              設備ip
        "port": 5555,                       設備port
        "sip": "192.168.1.100",             appium實例的ip
        "sport":4723,                       appium實例的port
        "udid":"36LBB18226509044"           設備序列號
      }
      

      device_name: 建立appium driver時需要此字段capability

      device_type: 為了支持不同型號的設備,可選值:huawei-7复唤、huawei-7p健田、nox(模擬器不再使用)

      ip、port:使用usb模式時佛纫,不需要無用妓局,可以隨便填,不重復

      udid:設備的序列號呈宇,使用adb devices命令可查看好爬。appium實例依靠udid來區(qū)分設備,如果使用wifi模式啟動攒盈,udid等于 ip:port 如192.168.1.103:5555

    2. 批量添加設備

      <url>/douyin/task/device/

      body

      {
         "1": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7",
             "ip": "192.168.1.103",
             "port": 5555,
             "sip": "192.168.1.100",
             "sport": 4723,
             "udid": "36LBB18226509044"
         },
         "2": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7",
             "ip": "192.168.1.103",
             "port": 5556,
             "sip": "192.168.1.100",
             "sport": 4724,
             "udid": "36LBB18228500328"
         },
         "3": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7",
             "ip": "192.168.1.103",
             "port": 5557,
             "sip": "192.168.1.100",
             "sport": 4725,
             "udid": "36LBB18228500503"
         },
         "4": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7",
             "ip": "192.168.1.103",
             "port": 5558,
             "sip": "192.168.1.100",
             "sport": 4726,
             "udid": "36LBB18228500561"
         },
         "5": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7",
             "ip": "192.168.1.100",
             "port": 5559,
             "sip": "192.168.1.100",
             "sport": 4727,
             "udid": "36LBB18228502964"
         },
         "6": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5560,
             "sip": "192.168.1.100",
             "sport": 4728,
             "udid": "4NT7N17409032426"
         },
         "7": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5561,
             "sip": "192.168.1.100",
             "sport": 4729,
             "udid": "4NT7N17425000937"
         },
         "8": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5562,
             "sip": "192.168.1.100",
             "sport": 4730,
             "udid": "QDY4C17509000567"
         },
         "9": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5563,
             "sip": "192.168.1.100",
             "sport": 4731,
             "udid": "QDY4C17509005281"
         },
         "10": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5564,
             "sip": "192.168.1.100",
             "sport": 4732,
             "udid": "QDY4C17829010389"
         },
         "11": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5565,
             "sip": "192.168.1.100",
             "sport": 4733,
             "udid": "QDY4C17930004703"
         },
         "12": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5566,
             "sip": "192.168.1.100",
             "sport": 4734,
             "udid": "QDYNW17517006206"
         },
         "13": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5567,
             "sip": "192.168.1.100",
             "sport": 4735,
             "udid": "QDYNW17517006280"
         },
         "14": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5568,
             "sip": "192.168.1.100",
             "sport": 4736,
             "udid": "QDYNW17520004097"
         },
         "15": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5569,
             "sip": "192.168.1.100",
             "sport": 4737,
             "udid": "QDYNW17C29017111"
         },
         "16": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5570,
             "sip": "192.168.1.100",
             "sport": 4738,
             "udid": "4NT7N17401000802"
         },
         "17": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5571,
             "sip": "192.168.1.100",
             "sport": 4739,
             "udid": "QDY4C17512006691"
         },
         "18": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5572,
             "sip": "192.168.1.100",
             "sport": 4740,
             "udid": "QDYNW17628007515"
         },
         "19": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5573,
             "sip": "192.168.1.100",
             "sport": 4741,
             "udid": "4NT4C17703000817"
         },
         "20": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5574,
             "sip": "192.168.1.100",
             "sport": 4742,
             "udid": "4NT4C17809000246"
         },
         "21": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5575,
             "sip": "192.168.1.100",
             "sport": 4743,
             "udid": "QDYNW17520004212"
         },
         "22": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5576,
             "sip": "192.168.1.100",
             "sport": 4744,
             "udid": "QDYNW17518000037"
         },
         "23": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5577,
             "sip": "192.168.1.100",
             "sport": 4745,
             "udid": "4NT4C17805011359"
         },
         "24": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5578,
             "sip": "192.168.1.100",
             "sport": 4746,
             "udid": "QDY4C17814015503"
         },
         "25": {
             "platform": "7.0",
             "device_name": "TRT-AL00",
             "device_type": "huawei-7p",
             "ip": "192.168.1.103",
             "port": 5579,
             "sip": "192.168.1.100",
             "sport": 4747,
             "udid": "QDY7N17429001004"
         }
      }
      
    3. 添加任務

      1. crawling任務

        POST <url>:/douyin/task/crawling/

        body:

        {
          "attrs":["comment", "author", "following", "follower", "work", "like"]
        }
        

        attrs:指定需要爬去的信息抵拘,可選值有以下

        "comment":評論內(nèi)容

        "author":主播首頁贊、關注數(shù)型豁、粉絲數(shù)等主要信息

        "following":關注列表僵蛛,如果author沒有指定尚蝌,此字段即使指定也不生效

        "follower": 粉絲列表,如果author沒有指定充尉,此字段即使指定也不生效

        "work":歷史作品飘言,如果author沒有指定,此字段即使指定也不生效

        "like":喜歡作品驼侠,如果author沒有指定姿鸿,此字段即使指定也不生效

        “music”:使用的音樂的被使用數(shù)等主要信息

        “music_hot”:使用該音樂的最熱作品,如果music沒有指定倒源,此字段即使指定也不生效

        “music_latest”: 使用該音樂的最新作品苛预,如果music沒有指定,此字段即使指定也不生效

      2. finding任務

        POST <url>:/douyin/task/search/

        body

        {
          "short_id":"29353709",
          "attrs":["follower","following","work","like"]
        }
        

        short_id: 可在account表中查詢

        attrs:類似crawling任務笋熬,可選值"follower","following","work","like"

        如果需要批量添加搜索任務

        POST <url>:/douyin/task/searches/

        body

        [
            {
                "short_id": "29353709",
                "attrs": ["follower", "following", "work", "like"]
            }, 
            {
                "short_id": "29353709",
                "attrs": ["follower", "following", "work", "like"]
            }, 
            {
                "short_id": "29353709",
                "attrs": ["follower", "following", "work", "like"]
            }, 
            {
                "short_id": "29353709",
                "attrs": ["follower", "following", "work", "like"]
            }
        ]
        

        出錯重試五次

      3. 私信任務

        POST <url>:/douyin/task/kol_letter/?udid=4NT7N17401000802

        udid: 指定某個設備來執(zhí)行此任務

        body

        [
          {
          "short_id":"1076686584",
          "words":"dijia"
        },
          {
          "short_id":"1076686584",
          "words":"lucky"
        },
          {
          "short_id":"1076686584",
          "words":"my baby"
        },
          {
          "short_id":"1076686584",
          "words":"you are dog"
        },
          {
          "short_id":"1076686584",
          "words":"fuck yourself"
        }
          ]
        

        short_id: 私信的對象

        words:私信的內(nèi)容

      4. 話題任務

        POST <url>:/douyin/task/category/?task_num=500

        task_num:添加500次話題任務热某,每次任務滑動700次。

        所有任務相關的api胳螟,都支持設置timeout

        如: <url>:/douyin/task/category/?task_num=500&timeout=30

        默認時昔馋,任務會一直等待設備就緒

    4. 啟動/停止第三方工具

      GET <url>:/start/

      已經(jīng)啟動的程序不會重啟

      GET <url>:/stop/

      GET <url>:/restart/

      已經(jīng)啟動的程序會kill在start

    5. 檢查loach運行狀態(tài)

      GET <url>:/douyin/task/stat/

      返回信息有所有設備運行狀態(tài),任務隊列糖耸,appium實例

      {
          "stat": [
              {
                  "ip": "192.168.1.103",
                  "port": 5555,
                  "sip": "192.168.1.100",
                  "sport": 4723,
                  "udid": "36LBB18226509044",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "d70ce834d07849a18a652e5f4defaeb0",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5556,
                  "sip": "192.168.1.100",
                  "sport": 4724,
                  "udid": "36LBB18228500328",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "a5a6c6f96ad940af82f60f1ca3daaeb1",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5557,
                  "sip": "192.168.1.100",
                  "sport": 4725,
                  "udid": "36LBB18228500503",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "721dbc9b32b14c8697eb36079afbf9a5",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5558,
                  "sip": "192.168.1.100",
                  "sport": 4726,
                  "udid": "36LBB18228500561",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "4e1553abda4c49c1ac54e99e9549d081",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.100",
                  "port": 5559,
                  "sip": "192.168.1.100",
                  "sport": 4727,
                  "udid": "36LBB18228502964",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "85c365db62e74bcdb70f867c1fe3ea25",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5560,
                  "sip": "192.168.1.100",
                  "sport": 4728,
                  "udid": "4NT7N17409032426",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "f9e49966e3cc44d3aec2022969a21cb3",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5561,
                  "sip": "192.168.1.100",
                  "sport": 4729,
                  "udid": "4NT7N17425000937",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "1bcc9e2211134a94ae2a86240ced92f1",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5562,
                  "sip": "192.168.1.100",
                  "sport": 4730,
                  "udid": "QDY4C17509000567",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "b5351a61ec794d90abfbc91419b21864",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5563,
                  "sip": "192.168.1.100",
                  "sport": 4731,
                  "udid": "QDY4C17509005281",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "698c94e1f6384c97893d3e71e7d1d852",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5564,
                  "sip": "192.168.1.100",
                  "sport": 4732,
                  "udid": "QDY4C17829010389",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "686fbc44e9bf44ada60a4690495dad27",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5565,
                  "sip": "192.168.1.100",
                  "sport": 4733,
                  "udid": "QDY4C17930004703",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "1810d80c6d3f476eb6b6464fdcbf9c39",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5566,
                  "sip": "192.168.1.100",
                  "sport": 4734,
                  "udid": "QDYNW17517006206",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "17235eee316c4ea2b71baddb9e0c734d",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5567,
                  "sip": "192.168.1.100",
                  "sport": 4735,
                  "udid": "QDYNW17517006280",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "a9a69287d4d0400ca1d94444026a0e32",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5568,
                  "sip": "192.168.1.100",
                  "sport": 4736,
                  "udid": "QDYNW17520004097",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "1a85ecf6dcd34fd383bab4e3f467f993",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5569,
                  "sip": "192.168.1.100",
                  "sport": 4737,
                  "udid": "QDYNW17C29017111",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "e9a2c9f45a78451984f3125e627a4ff7",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5570,
                  "sip": "192.168.1.100",
                  "sport": 4738,
                  "udid": "4NT7N17401000802",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "3ef5ad357e8d4b2cac6996b2720ff599",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5571,
                  "sip": "192.168.1.100",
                  "sport": 4739,
                  "udid": "QDY4C17512006691",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "cab30413ec10451da4e17a7bcba1448d",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5572,
                  "sip": "192.168.1.100",
                  "sport": 4740,
                  "udid": "QDYNW17628007515",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "b5e5aea632be44ef9959382d18314d26",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5573,
                  "sip": "192.168.1.100",
                  "sport": 4741,
                  "udid": "4NT4C17703000817",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "36e1a5dffb7c47b48f123f2920bf2387",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5574,
                  "sip": "192.168.1.100",
                  "sport": 4742,
                  "udid": "4NT4C17809000246",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "014c82cf5e424e59b0ee5717ab1f9079",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5575,
                  "sip": "192.168.1.100",
                  "sport": 4743,
                  "udid": "QDYNW17520004212",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 2,
                      "data": {
                          "attrs": [
                              "comment",
                              "author",
                              "following",
                              "follower",
                              "work",
                              "like"
                          ]
                      },
                      "uuid": "8b891a46d4d54c0b9e66d1a1519e3355",
                      "app_name": "douyin",
                      "timeout": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5576,
                  "sip": "192.168.1.100",
                  "sport": 4744,
                  "udid": "QDYNW17518000037",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 16,
                      "uuid": "f24d958a136b418b84d945e6d82e0922",
                      "app_name": "douyin",
                      "timeout": null,
                      "data": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5577,
                  "sip": "192.168.1.100",
                  "sport": 4745,
                  "udid": "4NT4C17805011359",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 16,
                      "uuid": "f24d958a136b418b84d945e6d82e0922",
                      "app_name": "douyin",
                      "timeout": null,
                      "data": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5578,
                  "sip": "192.168.1.100",
                  "sport": 4746,
                  "udid": "QDY4C17814015503",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 16,
                      "uuid": "f24d958a136b418b84d945e6d82e0922",
                      "app_name": "douyin",
                      "timeout": null,
                      "data": null,
                      "udid": null
                  }
              },
              {
                  "ip": "192.168.1.103",
                  "port": 5579,
                  "sip": "192.168.1.100",
                  "sport": 4747,
                  "udid": "QDY7N17429001004",
                  "platform": "7.0",
                  "device_name": "TRT-AL00",
                  "device_type": "huawei-7p",
                  "app": "DouYinApp_2_1_1",
                  "stat": 2,
                  "task": {
                      "task_type": 16,
                      "uuid": "f24d958a136b418b84d945e6d82e0922",
                      "app_name": "douyin",
                      "timeout": null,
                      "data": null,
                      "udid": null
                  }
              }
          ],
          "waiting_tasks": 1995,
          "appium": [
              "node.exe                      6752 Console                    1    111,088 K\n",
              "node.exe                      6804 Console                    1    107,908 K\n",
              "node.exe                      8160 Console                    1    108,608 K\n",
              "node.exe                      7940 Console                    1    107,612 K\n",
              "node.exe                      8188 Console                    1    107,220 K\n",
              "node.exe                      4036 Console                    1    112,516 K\n",
              "node.exe                      6600 Console                    1    107,896 K\n",
              "node.exe                      6524 Console                    1    110,748 K\n",
              "node.exe                      6456 Console                    1    108,280 K\n",
              "node.exe                      6764 Console                    1    109,412 K\n",
              "node.exe                      1016 Console                    1    109,800 K\n",
              "node.exe                      6024 Console                    1    111,980 K\n",
              "node.exe                      5932 Console                    1    107,936 K\n",
              "node.exe                      4340 Console                    1    108,460 K\n",
              "node.exe                      5916 Console                    1    107,552 K\n",
              "node.exe                      5820 Console                    1    107,344 K\n",
              "node.exe                      5528 Console                    1    107,700 K\n",
              "node.exe                      5560 Console                    1    104,240 K\n",
              "node.exe                      4904 Console                    1    102,164 K\n",
              "node.exe                      5208 Console                    1    103,464 K\n",
              "node.exe                      5224 Console                    1    105,956 K\n",
              "node.exe                      5152 Console                    1    103,884 K\n",
              "node.exe                      5404 Console                    1    103,232 K\n",
              "node.exe                      3488 Console                    1    105,080 K\n",
              "node.exe                      7124 Console                    1    102,836 K\n"
          ]
      }
      
最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末秘遏,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子嘉竟,更是在濱河造成了極大的恐慌邦危,老刑警劉巖,帶你破解...
    沈念sama閱讀 211,265評論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件周拐,死亡現(xiàn)場離奇詭異铡俐,居然都是意外死亡,警方通過查閱死者的電腦和手機妥粟,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,078評論 2 385
  • 文/潘曉璐 我一進店門审丘,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人勾给,你說我怎么就攤上這事滩报。” “怎么了播急?”我有些...
    開封第一講書人閱讀 156,852評論 0 347
  • 文/不壞的土叔 我叫張陵脓钾,是天一觀的道長。 經(jīng)常有香客問我桩警,道長可训,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,408評論 1 283
  • 正文 為了忘掉前任,我火速辦了婚禮握截,結果婚禮上飞崖,老公的妹妹穿的比我還像新娘。我一直安慰自己谨胞,他們只是感情好固歪,可當我...
    茶點故事閱讀 65,445評論 5 384
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著胯努,像睡著了一般牢裳。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上叶沛,一...
    開封第一講書人閱讀 49,772評論 1 290
  • 那天蒲讯,我揣著相機與錄音,去河邊找鬼恬汁。 笑死伶椿,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的氓侧。 我是一名探鬼主播,決...
    沈念sama閱讀 38,921評論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼导狡,長吁一口氣:“原來是場噩夢啊……” “哼约巷!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起旱捧,我...
    開封第一講書人閱讀 37,688評論 0 266
  • 序言:老撾萬榮一對情侶失蹤独郎,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后枚赡,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體氓癌,經(jīng)...
    沈念sama閱讀 44,130評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,467評論 2 325
  • 正文 我和宋清朗相戀三年贫橙,在試婚紗的時候發(fā)現(xiàn)自己被綠了贪婉。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,617評論 1 340
  • 序言:一個原本活蹦亂跳的男人離奇死亡卢肃,死狀恐怖疲迂,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情莫湘,我是刑警寧澤尤蒿,帶...
    沈念sama閱讀 34,276評論 4 329
  • 正文 年R本政府宣布,位于F島的核電站幅垮,受9級特大地震影響腰池,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 39,882評論 3 312
  • 文/蒙蒙 一示弓、第九天 我趴在偏房一處隱蔽的房頂上張望演怎。 院中可真熱鬧,春花似錦避乏、人聲如沸爷耀。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,740評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽歹叮。三九已至,卻和暖如春铆帽,著一層夾襖步出監(jiān)牢的瞬間咆耿,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,967評論 1 265
  • 我被黑心中介騙來泰國打工爹橱, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留萨螺,地道東北人。 一個月前我還...
    沈念sama閱讀 46,315評論 2 360
  • 正文 我出身青樓愧驱,卻偏偏與公主長得像慰技,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子组砚,可洞房花燭夜當晚...
    茶點故事閱讀 43,486評論 2 348

推薦閱讀更多精彩內(nèi)容