This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 需要下载 | |
# https://github.com/iawia002/annie | |
# 将 annie 可执行文件放在本脚本同目录或者加入环境变量 | |
# 或者自行修改相对路径 | |
# 需要自行使用 IFTTT 或者其他手段创建 Youtube 视频地址列表 | |
# 详情请参阅 | |
# https://blog.tookdes.org/archives/download-youtube-subscribe-video-with-srt.html | |
# -*- coding: utf-8 -*- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 需要下载 | |
# https://github.com/iawia002/annie | |
# https://github.com/muzuiget/niconvert | |
# 将 annie 可执行文件、Niconvert 的主 pyw 文件放在本脚本同目录或者加入环境变量 | |
# 或者自行修改相对路径 | |
# -*- coding: utf-8 -*- | |
import subprocess | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import datetime | |
btc_price_api_url = 'https://api.coinmarketcap.com/v1/ticker/bitcoin/' | |
sc_url = "https://sc.ftqq.com/yourkey.send" | |
def get_latest_bitcoin_price(): | |
response = requests.get(btc_price_api_url) | |
response_json = response.json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import subprocess | |
import re | |
import time | |
import smtplib | |
from email.mime.text import MIMEText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import time | |
import psutil | |
from subprocess import call | |
from subprocess import Popen | |
# 简介 | |
print "Steam Auto Rebooter v1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import imaplib, email, re | |
import os, time, uuid | |
# First, you should use IFTTT to forward your SMS text to your email inbox. | |
# That is because sometimes 12306 did not send emails to you but only SMS. | |
# This is for those SMS text like: | |
#【铁路客服】订单XXXXXX,XXX您已购X月X日XXXX次XX车XX号,XXX站XX:XX开。 |