Giter Site home page Giter Site logo

miyoubiauto's Introduction

miyoubiAuto

米游社每日米游币自动化Python脚本(务必使用Python3)
10.8更新:更换cookie的获取地址

注意:禁止在B站、贴吧、或各大论坛大肆传播!

作者已退游,项目不维护了。如果有能力的可以pr修复。

小引一波

推荐关注几个非常可爱有趣的女孩! 欢迎B站搜索:
@嘉然今天吃什么@向晚大魔王  @乃琳Queen   @贝拉kira   

第三方库

pip install requests
或
pip3 install requests

食用方法

1.下载源码
2.在Global.py中设置米游社Cookie
3.运行myb.py
本地第一次运行时会自动生产一个文件储存cookie,请勿删除

python3 myb.py
或
python myb.py

当前仅支持单个账号!

获取Cookie方法

  1. 浏览器无痕模式打开 http://user.mihoyo.com/ ,登录账号
  2. F12,打开开发者工具,找到并点击Network
  3. F5刷新页面,按下图复制 Cookie:

How to get mys cookie

当触发Debugger时,可尝试按Ctrl + F8关闭,然后再次刷新页面,最后复制 Cookie。也可以使用另一种方法:

  1. 复制代码 var cookie=document.cookie;var ask=confirm('Cookie:'+cookie+'\n\nDo you want to copy the cookie to the clipboard?');if(ask==true){copy(cookie);msg=cookie}else{msg='Cancel'}
  2. 浏览器无痕模式打开 http://user.mihoyo.com/ ,登录账号
  3. F12,打开开发者工具,找到并点击Console
  4. 控制台粘贴代码并运行,获得类似Cookie:xxxxxx的输出信息
  5. xxxxxx部分即为所需复制的 Cookie,点击确定复制

部署方法--腾讯云函数版(推荐!)

  1. 下载项目源码和压缩包

  2. 进入项目文件夹打开命令行执行以下命令

    python index.py "xxxxxxx"
    或
    python3 index.py "xxxxxxx"

    xxxxxxx为通过上面方式或取得米游社cookie
    一定要用双引号包裹!!
    例如: 1.png

  3. 复制返回内容(包括括号)
    例如: QQ截图20210505031552.png

  4. 登录腾讯云函数官网

  5. 选择函数服务-新建-自定义创建

  6. 函数名称随意-地区随意-运行环境Python3.6

  7. 提交方法:上次本地zip包-执行方法不要改-函数代码上传刚刚下载的压缩包

  8. 高级配置-环境配置-执行超时时间300秒

  9. 环境变量key填mysCookie(注意大小写),value填刚刚第3步复制的内容(注意括号也要复制) QQ截图20210505033548.png

  10. 触发器配置-自己定义时间(Cron表达式文档)

  11. 完成-立即转跳-函数管理-函数代码

  12. 点击部署-部署成功后点击测试-耐心等待返回结果-观看返回日志是否成功(中文可能出现编码问题,不过无伤大雅) __C9@CUSV_3`82A95I9PV.png QQ截图20210505034758.png

miyoubiauto's People

Contributors

womsxd avatar xiaomiku01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

miyoubiauto's Issues

感谢作者,新更新的代码可用

能够更新一下release。。。我用release的代码 报了json错误。。后面打印出来是404才知道用的是比较旧的 五月份的代码。。把最新的源码扔上去就可以用了`~

可否更新百度云函数的部署教程?

腾讯云函数即将在今年(2022)六月份对云函数收费(对,不能白嫖了),转战百度云函数,可惜不会部署
如果阿里云能白嫖的话也可以上阿里云的教程

脚本运行出错

签到出现invalid request,点赞分享也没执行,只有看帖是正常的
image
image

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.