Giter Club home page Giter Club logo

Comments (8)

Womsxd avatar Womsxd commented on August 28, 2024

可以正常获取啊~
请问是碰到了什么问题吗?

from automihoyobbs.

Womsxd avatar Womsxd commented on August 28, 2024

image

from automihoyobbs.

tokisakiyuu avatar tokisakiyuu commented on August 28, 2024

image

我拿收到的states列表里面是最小是从mission_id 62 开始的,不知道咋回事

from automihoyobbs.

Womsxd avatar Womsxd commented on August 28, 2024

image

我拿收到的states列表里面是最小是从mission_id 62 开始的,不知道咋回事

那是因为这个任务没做吧,我抓取的地方是在米游社 我的 这里进行抓取的,执行了才会加入这个列表,加上固定4个任务我就直接判断第一个是否是62了

from automihoyobbs.

Womsxd avatar Womsxd commented on August 28, 2024

bbs_Taskslist = "https://bbs-api.mihoyo.com/apihub/sapi/getUserMissionsState" # 获取任务列表

这个api来自米游社 我的 版块进行抓取的

from automihoyobbs.

Womsxd avatar Womsxd commented on August 28, 2024

if data["data"]["states"][0]["mission_id"] >= 62:
log.info(f"新的一天,今天可以获得{Today_getcoins}个米游币")
pass

在这里我判断获取到的第一个id是否大于或等于62,当满住条件的时候就证明今天的日常任务还没做

from automihoyobbs.

tokisakiyuu avatar tokisakiyuu commented on August 28, 2024

image

我拿收到的states列表里面是最小是从mission_id 62 开始的,不知道咋回事

那是因为这个任务没做吧,我抓取的地方是在米游社 我的 这里进行抓取的,执行了才会加入这个列表,加上固定4个任务我就直接判断第一个是否是62了

看懂了唉,是我看到这没理顺你的逻辑,打扰了😛

from automihoyobbs.

tokisakiyuu avatar tokisakiyuu commented on August 28, 2024

我在看你的python代码用js自己实现,我不会pyhon眼拙了,哈哈哈

from automihoyobbs.

Related Issues (20)

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.