爱意满满的作品展示区。
mymusise

百度翻译 Python API | 百度热搜数据

  •  
  •   mymusise ·
    mymusise · Apr 21, 2019 · 2862 views
    This topic created in 2662 days ago, the information mentioned may be changed or developed.

    最近做个东西,需要翻译接口,顺便封装了下,分享一下,有需要的取.

    https://github.com/mymusise/Baidu-Translation-SDK

    再顺手分享个之前弄的一个项目, 收集了大半年的百度热搜, 会持续更新, 用来回查某天哪些事情被推到风口浪尖上.

    https://github.com/mymusise/Baidu-Hot

    Supplement 1  ·  Apr 22, 2019

    附个例子

    from baidu_translate import TranslateClient
    
    
    client = TranslateClient()
    print(client.auto2auto('你好, 这是个测试').text)
    
    >>> Hello, this is a test.
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3511 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:54 · PVG 12:54 · LAX 21:54 · JFK 00:54
    ♥ Do have faith in what you're doing.