27 lines
614 B
Python
Executable File
27 lines
614 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
LOF基金溢价提醒
|
|
"""
|
|
|
|
import requests
|
|
import json
|
|
from datetime import datetime
|
|
|
|
def check_lof_premium():
|
|
"""检查 LOF 基金溢价情况"""
|
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}] 检查 LOF 溢价...")
|
|
|
|
# 集思录 LOF 数据
|
|
url = "https://www.jisilu.cn/data/lof/list"
|
|
|
|
try:
|
|
response = requests.get(url, timeout=30)
|
|
print(f"数据获取成功,请访问: {url}")
|
|
return True
|
|
except Exception as e:
|
|
print(f"获取失败: {e}")
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
check_lof_premium()
|