Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

抓取的数据下面这样 还能变json吗?自己试了一下失败了

1 {
  1: "WebcastMemberMessage"
  2 {
    1 {
      1: "WebcastMemberMessage"
      2: 6918944020081265419
      3: 6915918177712999181
      6: 1
      8 {
        1: "live_room_enter_toast"
        2: "{0:user} 346235245344272206{1:string}"
        3 {
          1: "#b8ffffff"
          4: 400
        }
        4 {
          1: 11
          2 {
            1: "#8CE7FF"
            4: 400
          }
          21 {
            1 {
              1: 1063944005356349
              2: 3586547338
              3: "345246202346255214347232204350241214346235277"
              9 {
                1: "https://p3.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
                1: "https://p29.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
                1: "https://p1.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
                2: "100x100/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1"
              }
              21 {
                1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                2: "webcast/user_grade_level_v4_11.png"
                3: 16
                4: 32
                6: 1
              }
              21 {
                1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                2: "webcast/fansclub_level_v2_6.png"
                6: 7
                8 {
                  1: "345257272345272223S"
                  2: "#FFFFFF"
                  3: 6
                }
              }
              22 {
                1: 54
                2: 17
                3: 1
              }
              23 {
                6: 11
                19 {
                  1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                  1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                  1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                  2: "webcast/user_grade_level_v4_11.png"
                  3: 16
                  4: 32
                  6: 1
                }
                20 {
                  1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
                  1: "http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
                  1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
                  2: "webcast/aweme_pay_grade_2x_10_14.png"
                  3: 12
                  4: 12
                  6: 1
                }
              }
              24 {
                1 {
                  1: "345257272345272223S"
                  2: 6
                  3: 1
                  4 {
                    1 {
                      1: 2
                      2 {
                        1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                        1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                        1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                        2: "webcast/fansclub_level_v2_6.png"
                      }
                    }
                    2: "345257272345272223S"
                  }
                  6: 59525933030
                }
                2 {
                  1: 1
                  2 {
                    1: "347272242345270203346236227"
                    2: 8
                    3: 1
                    4 {
                      1 {
                        1: 2
                        2 {
                          1: "http://p9-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                          1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                          1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                          2: "webcast/fansclub_level_v2_8.png"
                        }
                      }
                      2: "347272242345270203346236227"
                    }
                    6: 96886681419
                  }
                }
              }
              32: ""
              38: "dy7qs5qzh15c"
              46: "MS4wLjABAAAAg6ZAEasL_wsWt6eCkhfhKd9cE2yOf9S8vjqMdWywfafi9fbszFC9qmgxKbXSoSE1"
              54: 3
              61 {
                1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
                2: "webcast/user_grade_level_v4_11.png"
                3: 16
                4: 32
                6: 1
              }
              61 {
                1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                2: "webcast/fansclub_level_v2_6.png"
                6: 7
                8 {
                  1: "345257272345272223S"
                  2: "#FFFFFF"
                  3: 6
                }
              }
            }
          }
        }
      }
      9: 1
      10: 1
      11: 42000
    }
    2 {
      1: 1063944005356349
      2: 3586547338
      3: "345246202346255214347232204350241214346235277"
      9 {
        1: "https://p3.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
        1: "https://p29.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
        1: "https://p1.douyinpic.com/img/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1~c5_100x100.jpeg?from=4010531038"
        2: "100x100/tos-cn-avt-0015/516d8aa1fd969a6e447a8a79a1626db1"
      }
      21 {
        1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        2: "webcast/user_grade_level_v4_11.png"
        3: 16
        4: 32
        6: 1
      }
      21 {
        1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        2: "webcast/fansclub_level_v2_6.png"
        6: 7
        8 {
          1: "345257272345272223S"
          2: "#FFFFFF"
          3: 6
        }
      }
      22 {
        1: 54
        2: 17
        3: 1
      }
      23 {
        6: 11
        19 {
          1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
          1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
          1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
          2: "webcast/user_grade_level_v4_11.png"
          3: 16
          4: 32
          6: 1
        }
        20 {
          1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
          1: "http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
          1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_10_14.png~tplv-obj.image"
          2: "webcast/aweme_pay_grade_2x_10_14.png"
          3: 12
          4: 12
          6: 1
        }
      }
      24 {
        1 {
          1: "345257272345272223S"
          2: 6
          3: 1
          4 {
            1 {
              1: 2
              2 {
                1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
                2: "webcast/fansclub_level_v2_6.png"
              }
            }
            2: "345257272345272223S"
          }
          6: 59525933030
        }
        2 {
          1: 1
          2 {
            1: "347272242345270203346236227"
            2: 8
            3: 1
            4 {
              1 {
                1: 2
                2 {
                  1: "http://p9-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                  1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                  1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_8.png~tplv-obj.image"
                  2: "webcast/fansclub_level_v2_8.png"
                }
              }
              2: "347272242345270203346236227"
            }
            6: 96886681419
          }
        }
      }
      32: ""
      38: "dy7qs5qzh15c"
      46: "MS4wLjABAAAAg6ZAEasL_wsWt6eCkhfhKd9cE2yOf9S8vjqMdWywfafi9fbszFC9qmgxKbXSoSE1"
      54: 3
      61 {
        1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/user_grade_level_v4_11.png~tplv-obj.image"
        2: "webcast/user_grade_level_v4_11.png"
        3: 16
        4: 32
        6: 1
      }
      61 {
        1: "http://p6-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        1: "http://p1-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        1: "http://p3-webcast-dycdn.byteimg.com/img/webcast/fansclub_level_v2_6.png~tplv-obj.image"
        2: "webcast/fansclub_level_v2_6.png"
        6: 7
        8 {
          1: "345257272345272223S"
          2: "#FFFFFF"
          3: 6
        }
      }
    }
    3: 91
    10: 1
    18 {
      1: "live_room_enter_toast"
      2: "{0:user} 346235245344272206{1:string}"
      3 {
        1: "#b8ffffff"
        4: 400
      }
      4 {
        1: 11
        2 {
          1: "#8CE7FF"
          4: 400
        }
        21 {
          1 {
            1: 1063944005356349
            2: 3586547338
            3: "345246202346255214347232204350241214346235277"
            9 {
              1: "https://p3.douyinpic.com/img/tos-cn-avt-0015/516d8aa1

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...