1 import os 2 def file_handler(backend,res=None,type='fetch'):# write the function to simplify the data 3 if type == 'fetch': 4 with open('proxy.conf','r') as read_f: 5 tag = False 6 ret = [] 7 7 for read_line in read_f: 8 8 if read_line.strip() = backend_data: 9 Tag = True 10 continue 11 if tag and read_line.startswith('backend'): 12 break 13 if tag: 14 print('