This file contains 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
package main | |
import ( | |
"fmt" | |
"image/png" | |
"log" | |
"os" | |
"path/filepath" | |
"time" |
This file contains 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 -*- | |
# 如果你觉得它帮助到你了,可以移步: https://liaoguoyin.com/donation | |
# | |
# 需求: | |
# 1. 创建并读取本地 code.txt | |
# 2. 检查 IMEICode 状态,问询是否开始 | |
# 3. 跑步账号个数 | |
# 4. 跑步结果 | |
import os | |
import requests |
This file contains 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
""" | |
A Python script for crawling the goods list of ShopXO. | |
@author: LiaoGuoYin | |
""" | |
import json | |
import requests | |
from lxml import etree |
This file contains 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 matplotlib.pyplot as plt | |
import numpy as np | |
from math import exp, pi | |
# Author: LiaoGuoYin | |
# Blog: https://liaoguoyin.com | |
# 使用前记得 pip3 install matplotlib numpy |
This file contains 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 requests | |
from lxml import etree | |
# Author: LiaoGuoYin | |
# Blog: https://liaoguoyin.com | |
# (despreted) 辽工大教务在线选课捡漏 Python 脚本,教务系统完全更新,本脚本完全废弃。新版简单,思路移步 selectCourses.py |
This file contains 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 glob | |
import os | |
def files(curr_dir = '.', ext = '*.txt'): | |
"""当前目录下,所有 变量ext 结尾的文件""" | |
for i in glob.glob(os.path.join(curr_dir, ext)): | |
yield i | |
def all_files(rootdir, ext): |
This file contains 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: utf8 -*- | |
# Author: LiaoGuoYin | |
# 使用方法: | |
# 1. 修改 user 中的用户名密码 | |
# 2. 去 https://lbs.qq.com/tool/getpoint/index.html 通过签到地址名来获取对应的经纬度,替换 payload 中 sdd,sjd,swd 字段值 | |
# 3. 运行脚本 | |
# 《浅层逆向恩施人才App,并实现自动签到脚本》文章存档: https://liaoguoyin.com/2019/07/24/EnShiAppFakeSignature.html | |
import requests |