Git Product home page Git Product logo

zodgame_checkin's Introduction

zodgame_checkin

Zodgame automatic check-in using github action

使用者可自行在本仓库Actions中查询本项目运行状况。由于CloudFlare本身机制的更新,可能会导致本项目无法运作。

本仓库非必要不更新,如若更新,请尽可能保持同步。

功能描述

  1. 每日自动进行签到
  2. 每日自动完成Bux任务
  3. 若签到失败或完成任务失败,由Assert机制报错。

使用方法

1. 添加 Cookie 至 Secrets

  • 首先通过F12抓取到在浏览器中抓取Cookie.

  • 在项目页面,依次点击Settings-->Secrets-->New secret
  • 建立名为ZODGAME_COOKIE的 secret,值为复制的Cookie内容,最后点击Add secret
  • secret名字必须为ZODGAME_COOKIE

2. 启用 Actions

  • 本项目由Workflow控制,每日8时自动执行。
  • 本项目目前可以正常运行,如果有其他使用问题请在Issues留言。

zodgame_checkin's People

Contributors

gggssepgf avatar ytai-chn 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

Watchers

 avatar  avatar  avatar

zodgame_checkin's Issues

Error: Process completed with exit code 1.

这样

Run python3 ./zodgame/zodgame.py "***"
Traceback (most recent call last):
File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 188, in
zodgame(cookie_string)
File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 148, in zodgame
driver = uc.Chrome(options = options)
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\undetected_chromedriver_init_.py", line 466, in init
super(Chrome, self).init(
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in init
super().init(
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in init
self.start_session(capabilities)
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\undetected_chromedriver_init_.py", line 724, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:60412
from session not created: This version of ChromeDriver only supports Chrome version 116
Current browser version is 115.0.5790.171
Stacktrace:
GetHandleVerifier [0x002D37C3+48947]
(No symbol) [0x00268551]
(No symbol) [0x0016C92D]
(No symbol) [0x0018F180]
(No symbol) [0x001895E1]
(No symbol) [0x00189447]
(No symbol) [0x001BB840]
(No symbol) [0x001BB3CC]
(No symbol) [0x001B4E86]
(No symbol) [0x001916C7]
(No symbol) [0x0019284D]
GetHandleVerifier [0x0051FDF9+2458985]
GetHandleVerifier [0x0056744F+2751423]
GetHandleVerifier [0x00561361+2726609]
GetHandleVerifier [0x00350680+560624]
(No symbol) [0x0027238C]
(No symbol) [0x0026E268]
(No symbol) [0x0026E392]
(No symbol) [0x002610B7]
BaseThreadInitThunk [0x76D66A39+25]
RtlGetFullPathName_UEx [0x77AF7E4D+173]
RtlGetFullPathName_UEx [0x77AF7E1B+123]
(No symbol) [0x00000000]

请问为什么带了Cookie,还是登录不上去

报错信息:
截屏2022-02-28 14 26 23

我在本地调试了一下,发现在zodgame_checkin这个函数中获得的resp,是论坛的登录界面(输入用户名密码的),然后match是None

我试了很多次重新复制Cookie还是不行

GLaDOS代码请求

不好意思,提了一个不相关的issue。
大佬能分享一下GLaDOS签到代码吗,之前忘了clone,谢谢

可以将checkout@v2改成v3以解决"Node.js 12 actions are deprecated."的warning

可以将workflows的配置文件的第17行

- uses: actions/checkout@v2

改成

- uses: actions/checkout@v3

可以解决''Node.js 12 actions are deprecated.''的问题

Annotations
1 warning
build
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

fork后运行一直失败

报错:
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
签到失败
Traceback (most recent call last):
File "./zodgame/zodgame.py", line 64, in
zodgame(cookie_string)
File "./zodgame/zodgame.py", line 58, in zodgame
assert "恭喜你签到成功!" in message or "您今日已经签到,请明天再来" in message
AssertionError
Error: Process completed with exit code 1.

跟著做結果出現code 1

如提,我在做workflow的時候出現urllib.error.HTTPError: HTTP Error 404: Not Found
請問如何修正?

image

由于selenium版本更新导致的无法运行

Run python3 ./zodgame/zodgame.py "***"
Traceback (most recent call last):
  File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 184, in <module>
    zodgame(cookie_string)
  File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 144, in zodgame
    driver = uc.Chrome(version_main=version, options = options)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\undetected_chromedriver\__init__.py", line 453, in __init__
    super(Chrome, self).__init__(
TypeError: __init__() got an unexpected keyword argument 'executable_path'
Error: Process completed with exit code 1.

临时的解决方法是在requirements.txt文件中,第一行添加selenium==4.9.1

selenium==4.9.1
undetected-chromedriver

如果大佬有空可以针对新版本修一下

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.