Skip to content

Instantly share code, notes, and snippets.

@MrAru
MrAru / Main.py
Created August 30, 2020 03:15
Python script to automatically complete Daily Health in XMU
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.expected_conditions import alert_is_present
from time import sleep
def main():
cookies = {
'_dx_captcha_vid': '', # Enter your "_dx_captcha_vid" here
@MrAru
MrAru / index.js
Last active January 31, 2021 14:22
Javascript file to automatically complete Daily Health in XMU
const { chromium } = require('playwright');
(async () => {
const COOKIES = [{
name: '_dx_captcha_vid',
value: '', // Enter your "_dx_captcha_vid" value here
url: 'https://xmuxg.xmu.edu.cn/app/214'
}, {
name: 'SAAS_U',
value: '', // Enter your "SAAS_U" value here