Git Product home page Git Product logo

get-bduss's Introduction

BDUSS获取

workers

https://workers.cloudflare.com 新建一个workers,将 workers.js 的内容复制粘贴就完成了

  • 可以设置环境变量或者取消注释设置 ORIGIN
  • 可以设置环境变量或者取消注释设置 AllowedReferrer

php

  • 可以设置 $origin

示例

/index.html 是演示站 https://bduss.nest.moe 的源码,要直接使用需要修改或删除下述几项

  • L108L109 Google analytics 相关
  • L115 api地址

环境要求

仅限 PHP 版有要求,workers 版直接部署

php 7.x
php-curl

关于回调与stoken

  • 请将回调链接进行base64编码后以hash形式添加到连接到网站的链接中
  • 默认不提供stoken,如果需要请在querystoken_type中体现,至于这个stoken_type的可用值请自行寻找

参考格式

//https://bduss.nest.moe/#/aHR0cHM6Ly9leGFtcGxlLmNvbS8/c3Rva2VuX3R5cGU9dGI=
"https://bduss.nest.moe/#/" + btoa("https://example.com/?stoken_type=tb")//这样会回调会带贴吧的stoken
//---
"https://bduss.nest.moe/#/" + btoa("https://example.com/")//这样会不带stoken

其他

关于 Google analytics 可以参考 SukkaW/cloudflare-workers-async-google-analytics

关于本项目原理可以参考 扫码登录百度获取BDUSS

get-bduss's People

Contributors

banka2017 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.