Giter Site home page Giter Site logo

msxiaoiceapi's Introduction

msxiaoiceapi

UPDATE

  • 支持图片

说明  

需要  python3+ BeautifulSoup flask

登陆微博 并将headers保存在根目录headers.txt中
确保已经领养小冰 这里我提供了一个测试账号

使用

打开chrome或者firefox
前往 微博私信小冰页面
按F12 然后给小冰发送一条消息 如下图

点击第二个 将Request Headers中的所有信息复制到headers.txt中

api模式:
python3 xiaoiceapi.py
然后在浏览器中输入
http://127.0.0.1:5000/?que=你是谁

一般模式:
直接调用xb.chat("你是谁")即可

return:
{  
    "status": "succeed",  
    "text": "你都知道你还问[不屑脸],哈哈党"  
}


# 图片
xb.chat("你的照片")
{
    'status': 200, 
    'type': 'img', 
    'text': 'http://upload.api.weibo.com/2/mss/msget?source=351354573&fid=4195427450566728'
}  

感谢

@QingGo

msxiaoiceapi's People

Contributors

yanwii avatar qinggo avatar

Watchers

James Cloos avatar mixin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.