當前位置:編程學習大全網 - 網站源碼 - Django怎麽調用有道詞典或金山詞典api獲取單詞發音?

Django怎麽調用有道詞典或金山詞典api獲取單詞發音?

下面就是有道字典獲取發音的請求頭,妳只需要將下面hello換成妳要查詢的單詞即可。

GET /dictvoice?audio=hello&type=2 HTTP/1.1

Accept: */*

User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Referer: /search?q=hello&keyfrom=fanyi.smartResult

Accept-Language: zh-CN

Accept-Encoding: gzip, deflate

Host: dict.youdao.com

Connection: Keep-Alive

  • 上一篇:在寫韓順平坦克大戰的時候出現了問題,坦克無法移動,下面是代碼!
  • 下一篇:重置密碼源代碼
  • copyright 2024編程學習大全網