想在fishc上面下个课件,可惜币不够,会员又太贵,我还发现签到每天时间越找币给的越多,于是就有了这篇文章
请自行修改账号密码
from selenium.webdriver import Chrome
from datetime import datetime
import os,time
from selenium.webdriver.chrome.options import Options
from apscheduler.schedulers.blocking import BlockingScheduler
def trick_not_chromedriver():
option = Options()
option.add_argument('--disable-blink-features=AutomationControlled')
return option
def tick():
web = Chrome(options=trick_not_chromedriver())
web.get('https://fishc.com.cn/plugin.php?id=k_misign:sign')
time.sleep(2)
web.find_element_by_xpath('//*[@id="ls_username"]').send_keys('账号')
web.find_element_by_xpath('//*[@id="ls_password"]').send_keys('密码')
web.find_element_by_xpath('//*[@id="lsform"]/div/div/table/tbody/tr[2]/td[3]/button/em').click()
web.find_element_by_xpath('//*[@id="wp"]/div[2]/div[1]/div[1]/span').click()
print('Tick! The time is: %s' % datetime.now())
time.sleep(2)
if __name__ == '__main__':
scheduler = BlockingScheduler()
scheduler.add_job(tick, 'cron', hour=0,minute=1)
print('Press Ctrl+{0} to exit'.format('Tab' if os.name == 'nt' else 'C '))
# print('Tick! The time is: %s' % datetime.now())
try:
scheduler.start()
except (KeyboardInterrupt, SystemExit):
pass