Giter Club home page Giter Club logo

douyin-demo's Introduction

  • douyin-demo是无需了解签名算法,直接部署在服务器、应用程序内的一个付费http服务
  • 可以查阅抖音签名算法GO语言版,来研究抖音算法本身.
  • 有问题可以加我QQ:1255378630。

—————————————————————————

首先需要要在本地运行http服务器,端口为9102

douyin-demo http

接口分为无需登录和登录两部分

无需登录接口演示:

  • [无需登录]获取首页动态列表:

http://127.0.0.1:9102/api?action=feed&type=0&count=100&max_cursor=0&min_cursor=0

  • [无需登录]搜索用户(调用频次过高,会要求登录):

http://127.0.0.1:9102/api?action=discover/search&keyword=美女&type=1&cursor=0&count=10

  • [无需登录]获取作品列表:

http://127.0.0.1:9102/api?action=aweme/post&user_id=83774364341&max_cursor=0&count=20

  • [无需登录]获取用户信息:

http://127.0.0.1:9102/api?action=user&user_id=83774364341

  • [无需登录]获取用户关注列表:

http://127.0.0.1:9102/api?action=user/follower/list&user_id=83774364341&count=20&max_time=1531394616

  • [无需登录]获取用户粉丝列表:

http://127.0.0.1:9102/api?action=user/following/list&user_id=83774364341&count=20&max_time=1531394616

  • [无需登录]获取用户喜欢的作品列表:

http://127.0.0.1:9102/api?action=aweme/favorite&user_id=83774364341&count=20&max_time=1531394616

  • [无需登录]获取附近的feed列表:

http://127.0.0.1:9102/api?action=nearby/feed&type=0&count=100&max_cursor=0&min_cursor=0

http://127.0.0.1:9102/api?action=play&video_id=v0200f150000bcjhd5jbo1i96tqjqp90&line=0&ratio=720p

如何使用账号密码登录:

  • 生成设备信息

http://127.0.0.1:9102/device

  • 不填充验证码(手机号码前缀+86一定要转义为%2B86),如果需要验证码,会返回验证码图片

http://127.0.0.1:9102/login?mobile=%2B17702032055&password=poilkjmnb123&device_id=50311297598&iid=37764280446&uuid=866265035315870&openudid=4617150637217100&captcha=

  • 如果上述结果需要验证码,则填充验证码,后再请求

http://127.0.0.1:9102/login?mobile=%2B17702032055&password=poilkjmnb123&device_id=50311297598&iid=37764280446&uuid=866265035315870&openudid=4617150637217100&captcha=p8ux

如何使用微博登录

http://127.0.0.1:9102/login/weibo?access_token=2.00z7A2NHGahxaBbb82f38551doqv6B&device_id=50311297598&iid=37764280446&uuid=866265035315870&openudid=4617150637217100&captcha=

如何使用QQ登录

http://127.0.0.1:9102/login/qq?access_token=AA9E3EC48ED40CC135F23AA11729ECDF&uid=33216AB639F0E290C550EFBE05149938&device_id=50311297598&iid=37764280446&uuid=866265035315870&openudid=4617150637217100&captcha=

需要登录的接口演示(传递登录返回的user_id到uid参数):

  • [需登录]喜欢

http://127.0.0.1:9102/api?uid=96183592775&action=commit/item/digg&aweme_id=6577254073496505604&type=1

  • [需登录]关注

http://127.0.0.1:9102/api?uid=96183592775&action=commit/follow/user&user_id=65146937437

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.