Git Product home page Git Product logo

airport-checkin's Introduction

机场自动签到

使用Github Actions自动签到是违反了Github Actions条款的,如果仍需使用请fork后添加删除的两个yml自行使用

做这个项目主要是看到最近冒出来许多机场注册就能白嫖,签到就送流量。然后又顺便拿这个项目学习一下Github Actions。 请注意,本项目不讨论跟fq有关的话题,仅仅是技术讨论,不要询问白嫖jc等内容!!!

功能

废话,肯定就是机场自动签到啊。

部署

https://xcao.top/post-278.html 水了个博文,操作更详细

  1. Fork此仓库
  2. SettingsSecretsActions 添加以下参数:
参数 是否必须 内容 示例
EMAIL 注册机场所用邮箱 [email protected]
PASSWORD 注册机场所用密码 password1
BASE_URL 机场地址 https://examplea.com
SCKEY Sever酱秘钥 SCTxxxxxxxxxxxxxx
TGBOT Telegram推送bot 5xxxxxxx:xxxxxxxxx
TGUSERID Telegram推送人id 8xxxxxxxxx
  1. 转到Actions创建一个workflow,运行一次,以后每天项目都会自动运行。最后,可以到Run sign查看签到情况,同时也会通过Sever酱发送出去。

参考

  1. https://github.com/zhjc1124/ssr_autocheckin 用了他的机场签到代码。
  2. https://github.com/sirodeneko/genshin-sign 参考其Actions的yml。 (两个仓库均无许可证,让我有点蒙) 最近仓库https://github.com/sirodeneko/genshin-sign 增加了GPL许可证,在征求作者同意后,本仓库依旧保持使用MIT许可证进行开源,以下为与作者通信邮件

赞助我

airport-checkin's People

Contributors

xiaocao666tzh 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

airport-checkin's Issues

运行action出错,Error: Process completed with exit code 1.

完整代码如下:Run python3 ./main.py
Traceback (most recent call last):
File "./main.py", line 36, in
sendurl = 'https://sctapi.ftqq.com/' + SCKEY + '.send?title=机场签到&desp=' + checkin()
File "./main.py", line 30, in checkin
response = json.loads(response.text)
File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.
初步怀疑:是不是okgg.top这个网站不支持此签到,但是我看它确实是以SSP搭建的

同一个机场不同账号 只有一个今天突然成功

这个脚本之前用了快一年 两个月以前三个账号都突然开始出错,Error: Process completed with exit code 1
今天突然发现其中一个成功了,但是其他两个手动运行报错如下【需要的话我可以提供机场地址】

Run python3 ./main.py
shell: /usr/bin/bash -e {0}
env:
RUN_ENV: prod
pythonLocation: /opt/hostedtoolcache/Python/3.10.7/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.7/x64/lib
SCKEY:
EMAIL: ***
PASSWORD: ***
BASE_URL: ***
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 462, in _make_request
httplib_response = conn.getresponse()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 462, in _make_request
httplib_response = conn.getresponse()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/runner/work/Airport-Checkin/Airport-Checkin/./main.py", line 40, in
result = checkin()
File "/home/runner/work/Airport-Checkin/Airport-Checkin/./main.py", line 16, in checkin
session.get(base_url, verify=False)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error: Process completed with exit code 1.

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.