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

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

  •  
  •   mymusise ·
    mymusise · Apr 21, 2019 · 2785 views
    This topic created in 2628 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   ·   1663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:19 · PVG 00:19 · LAX 09:19 · JFK 12:19
    ♥ Do have faith in what you're doing.