30 lines
758 B
Python
Executable File
30 lines
758 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
检查可转债打新信息
|
|
"""
|
|
|
|
import requests
|
|
import json
|
|
from datetime import datetime, timedelta
|
|
|
|
def check_new_bonds():
|
|
"""检查新发行的可转债"""
|
|
url = "https://www.jisilu.cn/data/cb/list/"
|
|
headers = {"User-Agent": "Mozilla/5.0"}
|
|
|
|
try:
|
|
response = requests.get(url, headers=headers, timeout=30)
|
|
# 集思列表格数据
|
|
bonds = []
|
|
|
|
# 尝试解析
|
|
print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}] 检查可转债...")
|
|
print("请访问 https://www.jisilu.cn/data/cb/list/ 查看最新申购")
|
|
return True
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
check_new_bonds()
|