Git Product home page Git Product logo

douyin-service's Introduction

抖音在线签名服务

最新算法基于抖音19年初的android 2.9.0~3.9.0版本,请使用豌豆荚下载指定版本

任何疑问请发邮件到:[email protected]

第一步

创建一个私有的授权token,用于以后的所有操作

  • 点击 https://sign.vsdouyin.com/api/token/gen/ 直接创建
  • 粘贴 token到文件config.pyAPI_TOKEN配置项
  • 查看token的剩余可用次数(以下实例使用b7f5a12b0dfa11f6c1046a2abe65eb94作为token,使用时请替换为你自己的)
    • 使用命令python3 1_info_token.py
    • 其它语言调用请参考:
curl "https://sign.vsdouyin.com/api/token/info/b7f5a12b0dfa11f6c1046a2abe65eb94"

第二步

  • 使用命令python3 2_gen_device.py 生成设备值
  • 其它语言调用请参考python源码

第三步

  • 使用命令python3 3_test_as_cp_mas.py测试as\cp\mas签名
  • 其它语言调用请参考:
curl -X "POST" "https://sign.vsdouyin.com/api/653d33c/sign/b7f5a12b0dfa11f6c1046a2abe65eb94" \
     -H 'Content-Type: application/json' \
     -d $'{"url": "https://aweme.snssdk.com/aweme/v1/feed/?type=0&max_cursor=0&min_cursor=-1&count=6&volume=0.3333333333333333&pull_type=2&need_relieve_aweme=0&filter_warn=0&is_cold_start=0&js_sdk_version=1.2.2&app_type=normal&manifest_version_code=321&_rticket=1541682949911&ac=wifi&device_id=59121099964&iid=50416179430&os_version=8.1.0&channel=gray_3306&version_code=330&device_type=ONEPLUS%20A5000&language=zh&vid=C2DD3A72-18E8-490e-B58A-86AD20BB8035&resolution=1080*1920&openudid=27b34f50ff0ba8e26c5747b59bd6d160fbdff384&update_version_code=3216&app_name=aweme&version_name=3.3.0&os_api=27&device_brand=OnePlus&ssmix=a&device_platform=android&dpi=420&aid=1128"}'
  • http请求返回的header里面的times为token剩余的次数

第四步

  • http请求签名后的链接 请求头必须携带User-Agent: okhttp/3.8.2和cookie:install_id=设备算法生成的install_id
curl -k -H 'User-Agent: okhttp/3.8.2' \
     -H 'Cookie:install_id=50416179430' \
     'https://aweme.snssdk.com/aweme/v1/feed/?app_type=normal&manifest_version_code=290&_rticket=1550930244608&ac=wifi&device_id=66294943700&iid=64323608375&os_version=9&channel=wandoujia_zhiwei&version_code=290&device_type=ONEPLUS%20A6010&language=zh&uuid=869386044722596&resolution=1080*2261&openudid=89ca1c64a055844d&update_version_code=2902&app_name=aweme&version_name=2.9.0&os_api=28&device_brand=OnePlus&ssmix=a&device_platform=android&dpi=420&aid=1128&count=6&type=0&max_cursor=0&min_cursor=-1&pull_type=2&ts=1552901499&as=a1e576084b979c95df4355&cp=6a7cce50bef18e5de1KkSo&mas=0199ee9c1569bedff78dfe8012939de97eacaccc2c6626ac9cc69c' -H 'Connection: keep-alive' 
  • 使用其他python文件测试具体功能

douyin-service's People

Contributors

flyoffline avatar

Watchers

 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.