GithubHelp home page GithubHelp logo

xdingya / qingxing-fuckactivites Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

一键抢**青星的活动,麻麻再也不用担心手速网速太慢啦!理论适用于所有 DTcms 系统。

Python 100.00%

qingxing-fuckactivites's Introduction

**青星活动抢票助手

前言

这是我第一个 Python 作品 第一个就这么刑ヾ(≧▽≦*)o 不喜勿喷!玻璃心~

简介

本项目旨在帮助用户自动化参与**青星(HNQX)的活动报名,提高抢票成功率。通过使用Python脚本,用户可以避免因手速或网速慢而错过活动报名。此脚本适用于所有基于DTcms系统的活动报名。

安装与配置

安装依赖

确保你已经安装了Python和pip。然后,安装所需的库:

pip install requests
pip install BeautifulSoup

配置脚本

在脚本中,你需要配置以下参数:

  • username: 你的登录用户名。
  • password: 你的登录密码。
  • activityID: 你想要报名的活动ID。
##### 配置面板 #####
username = "your_username"
password = "your_password"
activityID = "your_activity_id"
##### ###### #####

使用方法

  1. 将上述配置中的your_usernameyour_passwordyour_activity_id替换为你的实际信息。
  2. 运行脚本。

注意事项

  • 本脚本在尝试报名时会不断重试,直到成功或遇到错误。
  • 如果活动已发布或被删除,脚本会相应地输出提示信息。
  • 请确保你的网络连接稳定,以避免因网络问题导致的错误。
  • 使用此脚本时,请遵守相关法律法规和网站的使用条款。

代码示例

import requests
import time
from fun import *

##### 配置面板 #####
username = "your_username"
password = "your_password"
activityID = "your_activity_id"
##### ###### #####

# 登录并获取cookies
with requests.Session() as session:
    # ... 登录逻辑 ...

# 活动报名逻辑
# ... 报名逻辑 ...

# 活动信息输出
# ... 输出逻辑 ...

# 异常处理
# ... 异常处理逻辑 ...

免责声明

本脚本仅供学习和研究使用,使用前请确保你了解并遵守所有相关法律法规。作者不对因使用此脚本产生的任何后果负责。

qingxing-fuckactivites's People

Contributors

xdingya avatar

Stargazers

 avatar

Watchers

 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.