随手写了个脚本
运行环境:python3
需要模块:requests
bs4
使用方法:直接挂服务器上,一分钟运行一次就OK了
源码:
import requests
from bs4 import BeautifulSoup
import time
headers ={
"Host": "cx.ahzsks.cn",
"Pragma": "no-cache",
"Referer": "http://cx.ahzsks.cn/",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome