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 dns.resolver | |
import requests | |
import logging | |
import sys | |
import os | |
from pathlib import Path | |
from typing import List | |
from io import StringIO | |
# ================================ |
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 dns.resolver | |
import requests | |
import logging | |
import sys | |
import os | |
from pathlib import Path | |
from typing import List | |
from io import StringIO | |
# ================================ |
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 feedparser | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
import os |
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
PRIVATE https://rakersfu-cron.hf.space | |
PRIVATE https://rakersfu-rakelinux.hf.space/ | |
PUBLIC https://rakersfu-n8n.hf.space | |
PUBLIC https://rakersfu-crongithosts.hf.space | |
PUBLIC https://rakersfu-panel.hf.space/app | |
PUBLIC https://huggingface.co/spaces/rakersfu/onetts/tree/main |
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://rakersfu-n8n.hf.space | |
https://rakersfu-crongithosts.hf.space | |
https://rakersfu-panel.hf.space/app | |
https://huggingface.co/spaces/rakersfu/onetts/tree/main |
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 | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
from concurrent.futures import ThreadPoolExecutor | |
# 配置日志 | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
log_dir = os.path.dirname(log_file) | |
if log_dir and not os.access(log_dir, os.W_OK): |
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 | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
# 配置日志 | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
logging.basicConfig( | |
level=logging.INFO, |
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 | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
# 配置日志 | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
logging.basicConfig( | |
level=logging.INFO, |
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 logging | |
import os | |
# 配置日志 | |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | |
# Hugging Face Space URL 和 API 令牌 | |
SPACE_URL = "https://rakersfu-cron.hf.space" | |
HF_TOKEN = os.getenv("HF_TOKEN") # 从环境变量读取 HF_TOKEN |
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 | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
# 配置日志 | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
logging.basicConfig( | |
level=logging.INFO, |
NewerOlder