某某词典视频例句接口-逆向分析

网页接口

https://www.91dict.com/words?w=identical

有6段影片例句,有影视名称、图片、例句、mp3

但是没有视频片段

抓包某某词典app,因为要计算ak,所以不能直接调用

curl -H 'Cookie: JSESSIONID=6AB3E5FDBE8C5C6568A89DF5B36C5374' -H 'User-Agent: RRDict/1.6 10/10 1/1.2.3' -H 'did: 00000000-628e-3112-ffff-ffffef05ac4a' -H 'Host: api.91dict.com' --compressed 'https://api.91dict.com/seek_word?t=1582702280&ak=eddf18ad430e5fb80a6cd24cac44536a&keyword=cake&basic=0'

返回

{
  "code": 200,
  "chinese": false,
  "word": "cake",
  "englishPhonogram": "[keɪk]",
  "americaPhonogram": "[kek]",
  "paraphrase": "n. 蛋糕;块状物;利益总额\nvt. 使结块\nvi. 结成块状\nn. (Cake)人名;(英)凯克;(塞)察凯",
  "variantDesc": "第三人称单数:cakes\n现在分词:caking\n复数形式:cakes",
  "englishAudio": "https://mp3.91dict.com/word/cake_e.mp3?auth_key=1583020800-0-0-2dd69f016c7549811129b4b3e908dd48",
  "americaAudio": "https://mp3.91dict.com/word/cake_a.mp3?auth_key=1583020800-0-0-a0f8f17b465464148c9b03f8ec3c993c",
  "tags": [
    "CET4",
    "IELTS",
    "NEEP"
  ],
  "voiceName": "catherine",
  "subtitles": [
    {
      "videoId": 1517,
      "videoName": "爱的拐点",
      "currentSubtitle": {
        "subId": 2800226,
        "original": "You want some coffee cake, honey? I got some coffee cake in here.",
        "translation": "你想吃点咖啡蛋糕吗宝贝 我准备了咖啡蛋糕",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-17d460b083f6f0fc59f7aad1f6634bf9",
        "subImgWifi": "https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-17d460b083f6f0fc59f7aad1f6634bf9",
        "subAudio": "https://mp3.91dict.com/mp32/52e2a4a1b9bce33c9d94f231245fa406/246.mp3?auth_key=1583020800-0-0-ab00da24033b0988ffedf98a1e295be9",
        "subVideo": "https://mp4.91dict.com/mp4/52e2a4a1b9bce33c9d94f231245fa406/246.mp4?auth_key=1583020800-0-0-df507152398f6c2ad48fb271dbff9302",
        "sub": "https://sub.91dict.com/json2/52e2a4a1b9bce33c9d94f231245fa406/246.json?auth_key=1583020800-0-0-393365db80d437ed5c9887f87d38c49c",
        "trash": "1",
        "bravo": "2"
      },
      "prevSubtitle": {
        "subId": 2800225,
        "original": "Me too.",
        "translation": "我也是"
      },
      "nextSubtitle": {
        "subId": 2800227,
        "original": "I'm gonna take off. I promised Howie",
        "translation": "我要走了"
      }
    },
    {
      "videoId": 838,
      "videoName": "豚鼠特工队",
      "currentSubtitle": {
        "subId": 2016683,
        "original": "Cake! did I tell you I love cake? oh! oh, I've heard of places like this!",
        "translation": "蛋糕 我说过我喜欢蛋糕吗 我听说过这样的地方",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/c9226cb01c66e97c587d1905be4ef712/725.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-2af586f7a1b98850df07ce226bc82fe3",
        "subImgWifi": "https://img.91dict.com/img2/c9226cb01c66e97c587d1905be4ef712/725.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-2af586f7a1b98850df07ce226bc82fe3",
        "subAudio": "https://mp3.91dict.com/mp32/c9226cb01c66e97c587d1905be4ef712/725.mp3?auth_key=1583020800-0-0-ca2b430786826ab1d04300b6e9cc3e65",
        "subVideo": "https://mp4.91dict.com/mp4/c9226cb01c66e97c587d1905be4ef712/725.mp4?auth_key=1583020800-0-0-df80fce1b6d4980acd17f430ef1d4001",
        "sub": "https://sub.91dict.com/json2/c9226cb01c66e97c587d1905be4ef712/725.json?auth_key=1583020800-0-0-8cd57da47eda22206741c752207b9bbc",
        "trash": "0",
        "bravo": "0"
      },
      "prevSubtitle": {
        "subId": 2016682,
        "original": "My brother's a loon! I love him, but he's...",
        "translation": "我的兄弟是个疯子 我爱他 但是他"
      },
      "nextSubtitle": {
        "subId": 2016684,
        "original": "They sell something called \"layer cake!\"",
        "translation": "他们卖夹心面包"
      }
    },
    {
      "videoId": 1370,
      "videoName": "波普先生的企鹅",
      "currentSubtitle": {
        "subId": 2629885,
        "original": "- Thanks. I should get the cake in the... - That's a nice cake.",
        "translation": "-谢谢 该把蛋糕放冰箱 -这蛋糕不错",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/273013c62ad5df33069f994e4cb67777/507.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-19be016633fa678204be79b46b04be26",
        "subImgWifi": "https://img.91dict.com/img2/273013c62ad5df33069f994e4cb67777/507.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-19be016633fa678204be79b46b04be26",
        "subAudio": "https://mp3.91dict.com/mp32/273013c62ad5df33069f994e4cb67777/507.mp3?auth_key=1583020800-0-0-790d882426971a2d520821b5f9e2a40e",
        "subVideo": "https://mp4.91dict.com/mp4/273013c62ad5df33069f994e4cb67777/507.mp4?auth_key=1583020800-0-0-0555726fd7c5621e9bed5142e917cec1",
        "sub": "https://sub.91dict.com/json2/273013c62ad5df33069f994e4cb67777/507.json?auth_key=1583020800-0-0-2cac63c1df1fef175ac225f1c2fa6abe",
        "trash": "0",
        "bravo": "0"
      },
      "prevSubtitle": {
        "subId": 2629884,
        "original": "You look great.",
        "translation": "你看上去不错啊"
      },
      "nextSubtitle": {
        "subId": 2629886,
        "original": "What?",
        "translation": "什么啊"
      }
    },
    {
      "videoId": 87,
      "videoName": "大西洋帝国 第3季 第9集",
      "currentSubtitle": {
        "subId": 1925996,
        "original": "We've got to have cake. It's no party without a cake.",
        "translation": "我们得吃蛋糕 不吃蛋糕怎么算过生日",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/bfd1ef9a65ffe8d9e8c107f850355b38/389.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-ac5ba3752d9d4819d03326470021d5ca",
        "subImgWifi": "https://img.91dict.com/img2/bfd1ef9a65ffe8d9e8c107f850355b38/389.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-ac5ba3752d9d4819d03326470021d5ca",
        "subAudio": "https://mp3.91dict.com/mp32/bfd1ef9a65ffe8d9e8c107f850355b38/389.mp3?auth_key=1583020800-0-0-292e9c06da445e506eb24505b8cc47b7",
        "subVideo": "https://mp4.91dict.com/mp4/bfd1ef9a65ffe8d9e8c107f850355b38/389.mp4?auth_key=1583020800-0-0-5e921ff4a8005281f5ca885ee6bb4449",
        "sub": "https://sub.91dict.com/json2/bfd1ef9a65ffe8d9e8c107f850355b38/389.json?auth_key=1583020800-0-0-ba34b28b2c01b510c635f4732395eecb",
        "trash": "0",
        "bravo": "0"
      },
      "prevSubtitle": {
        "subId": 1925995,
        "original": "All right, now. Maybe you need to go and have a lie--",
        "translation": "好啦 或许你需要躺下..."
      },
      "nextSubtitle": {
        "subId": 1925997,
        "original": "Let's carve it up, huh? Let's slice it wide open.",
        "translation": "我们把它切了 一刀两半"
      }
    },
    {
      "videoId": 5,
      "videoName": "打工姐妹花 第3季 第4集",
      "currentSubtitle": {
        "subId": 2321946,
        "original": "Just wait till we run out of cake pops.",
        "translation": "等没了蛋糕棒棒糖 你再听听",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/e6d6c47a2a80809f055137624b6ab258/459.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-aba22dd419dccfb499ed899d626238af",
        "subImgWifi": "https://img.91dict.com/img2/e6d6c47a2a80809f055137624b6ab258/459.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-aba22dd419dccfb499ed899d626238af",
        "subAudio": "https://mp3.91dict.com/mp32/e6d6c47a2a80809f055137624b6ab258/459.mp3?auth_key=1583020800-0-0-df98f998f52a6e7fcb9099536c64fd2f",
        "subVideo": "https://mp4.91dict.com/mp4/e6d6c47a2a80809f055137624b6ab258/459.mp4?auth_key=1583020800-0-0-1e89f418a0adf22d6c12953301a97793",
        "sub": "https://sub.91dict.com/json2/e6d6c47a2a80809f055137624b6ab258/459.json?auth_key=1583020800-0-0-aaeed5681ed2da91108377ba179dca1c",
        "trash": "0",
        "bravo": "0"
      },
      "prevSubtitle": {
        "subId": 2321945,
        "original": "Think they're crying now?",
        "translation": "你以为她们现在就在哭吗"
      },
      "nextSubtitle": {
        "subId": 2321947,
        "original": "I'll have a tall cap, triple-shot half caf.",
        "translation": "我要中杯卡布奇诺 三份浓缩 半低咖啡因"
      }
    },
    {
      "videoId": 1427,
      "videoName": "耶鲁大学开放课程:博弈论 第24集",
      "currentSubtitle": {
        "subId": 1760252,
        "original": "I can't have my cake and resell it.",
        "translation": "我不能吃了我的蛋糕然后再卖了它",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/afc5f4102fb7808cec060a6d6767e111/144.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-9225237f1ca4badbca789745cfe7cb95",
        "subImgWifi": "https://img.91dict.com/img2/afc5f4102fb7808cec060a6d6767e111/144.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-9225237f1ca4badbca789745cfe7cb95",
        "subAudio": "https://mp3.91dict.com/mp32/afc5f4102fb7808cec060a6d6767e111/144.mp3?auth_key=1583020800-0-0-ff0d0bb0d26e87accfba83c63e07ba56",
        "subVideo": "https://mp4.91dict.com/mp4/afc5f4102fb7808cec060a6d6767e111/144.mp4?auth_key=1583020800-0-0-9b6958fee29df9552ae08aa154ebed21",
        "sub": "https://sub.91dict.com/json2/afc5f4102fb7808cec060a6d6767e111/144.json?auth_key=1583020800-0-0-799bb1b23c3e49d277ec27053f5d07fd",
        "trash": "0",
        "bravo": "0"
      },
      "prevSubtitle": {
        "subId": 1760251,
        "original": "So if I buy it, once I've eaten it, I can't resell it.",
        "translation": "如果我买下吃掉之后 我就不能再出售它了"
      },
      "nextSubtitle": {
        "subId": 1760253,
        "original": "So think about pure consumption goods over here.",
        "translation": "所以想一想纯消耗品"
      }
    }
  ]
}

截取部分

{
      "videoId": 1517,
      "videoName": "爱的拐点",
      "currentSubtitle": {
        "subId": 2800226,
        "original": "You want some coffee cake, honey? I got some coffee cake in here.",
        "translation": "你想吃点咖啡蛋糕吗宝贝 我准备了咖啡蛋糕",
        "wh": "400*247",
        "subImg": "https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg?x-oss-process=image/resize,m_fill,h_247,w_400&auth_key=1583020800-0-0-17d460b083f6f0fc59f7aad1f6634bf9",
        "subImgWifi": "https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-17d460b083f6f0fc59f7aad1f6634bf9",
        "subAudio": "https://mp3.91dict.com/mp32/52e2a4a1b9bce33c9d94f231245fa406/246.mp3?auth_key=1583020800-0-0-ab00da24033b0988ffedf98a1e295be9",
        "subVideo": "https://mp4.91dict.com/mp4/52e2a4a1b9bce33c9d94f231245fa406/246.mp4?auth_key=1583020800-0-0-df507152398f6c2ad48fb271dbff9302",
        "sub": "https://sub.91dict.com/json2/52e2a4a1b9bce33c9d94f231245fa406/246.json?auth_key=1583020800-0-0-393365db80d437ed5c9887f87d38c49c",
        "trash": "1",
        "bravo": "2"
      },
      "prevSubtitle": {
        "subId": 2800225,
        "original": "Me too.",
        "translation": "我也是"
      },
      "nextSubtitle": {
        "subId": 2800227,
        "original": "I'm gonna take off. I promised Howie",
        "translation": "我要走了"
      }
    },

可得(实测去除auth_key可用)

图片链接:
https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg
mp3链接:
https://mp3.91dict.com/mp32/52e2a4a1b9bce33c9d94f231245fa406/246.mp3
mp4链接:
https://mp4.91dict.com/mp4/52e2a4a1b9bce33c9d94f231245fa406/246.mp4
字幕链接:
https://sub.91dict.com/json2/52e2a4a1b9bce33c9d94f231245fa406/246.json

对照网页版的mp3链接和图片链接

<img src="https://img.91dict.com/img2/dc11897f725bdb28bf0a5299ec246ccf/387.jpg?x-oss-process=image/resize,m_fill,h_494,w_800&auth_key=1583020800-0-0-11d56652e8edf1b4ed7bb17c66ca2d90" />
<div class="carousel-caption">
<div class="mTop" style="position:absolute">
<a href="javascript:void(0)" onclick="audioPlay(this)">
<img class="speaker" src="/resources/img/trumpet2.png"/>
<img class="wave1" src="/resources/img/wave2-1.png" />
<img class="wave2" src="/resources/img/wave2-2.png" />
</a>
<audio src="https://mp3.91dict.com/mp32/dc11897f725bdb28bf0a5299ec246ccf/387.mp3?auth_key=1583020800-0-0-5f57f16d94b9ce24f9190ffb1e481058"></audio>

对比:

图片链接:
APP:https://img.91dict.com/img2/52e2a4a1b9bce33c9d94f231245fa406/246.jpg
WEB:https://img.91dict.com/img2/dc11897f725bdb28bf0a5299ec246ccf/387.jpg

mp3链接:
APP:https://mp3.91dict.com/mp32/52e2a4a1b9bce33c9d94f231245fa406/246.mp3
WEB:https://mp3.91dict.com/mp32/dc11897f725bdb28bf0a5299ec246ccf/387.mp3

一毛一样

所以有个大胆的想法,通过网页版获得链接,然后改头换面成字幕链接和mp4文件

实测成功!!

image-20200226162003265

字幕文件分析:

et为End Time
st为Start Time
en为英文
cn为中文
最后修改:2021 年 02 月 19 日
如果觉得我的文章对你有用,请随意赞赏