sfun commited on
Commit
7f1ed69
1 Parent(s): d893114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -29,6 +29,10 @@ async def fetch_url(url, session, max_retries=3, timeout=180):
29
  raise Exception(f"Failed to fetch URL after {max_retries} attempts")
30
 
31
  async def extract_and_transform_proxies(input_text):
 
 
 
 
32
  try:
33
  # 尝试直接解析整个输入作为YAML
34
  data = yaml.safe_load(input_text)
@@ -50,6 +54,10 @@ async def extract_and_transform_proxies(input_text):
50
  if not proxies_list:
51
  return "未找到有效的代理配置"
52
 
 
 
 
 
53
  transformed_proxies = []
54
 
55
  for proxy in proxies_list:
 
29
  raise Exception(f"Failed to fetch URL after {max_retries} attempts")
30
 
31
  async def extract_and_transform_proxies(input_text):
32
+ print("Original input data:")
33
+ print(input_text)
34
+ print("------------------------")
35
+
36
  try:
37
  # 尝试直接解析整个输入作为YAML
38
  data = yaml.safe_load(input_text)
 
54
  if not proxies_list:
55
  return "未找到有效的代理配置"
56
 
57
+ print("Parsed proxies list:")
58
+ print(proxies_list)
59
+ print("------------------------")
60
+
61
  transformed_proxies = []
62
 
63
  for proxy in proxies_list: