Giter Site home page Giter Site logo

yuyanlike / getysfurniturelist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lingkai5wu/getysfurniturelist

0.0 0.0 0.0 3.21 MB

一个原神尘歌壶工具,通过洞天摹数获取摆件列表和相关信息,保存到 Excel。

License: Apache License 2.0

Python 76.41% HTML 23.59%

getysfurniturelist's Introduction

README

getYsFurnitureList.py

简介

一个原神尘歌壶工具,通过洞天摹数获取摆件列表和相关信息,保存到 Excel。

image-20230206162218969

快速开始

  1. 下载软件,解压到任意位置。 image-20230206155720139

  2. 双击运行,仅首次运行时需要输入cookie,后续使用将直接从配置文件读取。 image-20230206160036460

  3. 获取cookie的方法很多,这里推荐直接从胡桃工具箱复制,这也是我最常用的工具,是一个 Windows 平台的开源的原神工具箱。 image-20230206160510645

  4. 输入获取的洞天摹数,回车运行。程序应该会自动完成获取,并打开Excel。 image-20230206161927319

  5. 在游戏中使用摹本,将相应已有摆设的数量录入表格即可。 image-20230206162230531

额外说明

Excel 的布局和取色参考了这位大佬赠礼套装工具表,用法大致相同。

  • 本项目开源,您的数据全部保存在本地,不存在主动泄露的风险。

  • 首次运行后会得到另外两个文件,config.ini 是程序的配置文件,明文保存您的cookie信息;17286543532.xlsx 是以洞天摹数命名的 Excel 文件。 image-20230206163053810

  • Tips: 摆设的拥有数量大于或等于所需数量时显示绿底 image-20230206162640978

  • Tips: 摆设名称严格对应,可以直接复制单元格,粘贴到搜索摆设中搜索。 image-20230206225516050

  • Tips: 跳转按钮是超链接,单击能够跳转到对应摆设的 Wiki,方便查看获取途径等信息。 image-20230206162651406

  • 摆设的默认排序规则是先根据星级升序、再根据所需数量升序、最后根据ID升序。

  • Tips: 根据排序规则,推荐的录入方法是记忆星级、数量和名称,并按前述的顺序查找。 image-20230206162459364 image-20230206162605124

开发说明

程序流程比较简单,甚至不需要画图。先从配置文件获取 cookie,若无则提示用户输入并保存到配置文件;用户输入需要获取的洞天摹数;构造get请求,若 cookie 失效则重复第一步;解析json数据;将数据填入 Excel 并设置格式;程序结束。

整个程序关键的只有构造请求这一步,经过测试,接口信息可能如下。

URL: https://api-takumi.mihoyo.com/event/e20200928calculate/v1/furniture/blueprint

必传参数

key value 说明
region cn_gf01 可能是服务器
share_code 10或11位数字 洞天摹数

所需cookie

cookie_token 和 account_id,经测试只需要这两个cookie对应,但需要注意 cookie_token 的过期时间。

getysfurniturelist's People

Contributors

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