, ,else:
, , , , exit()
, ,if not os.path.isdir(dirname):
, , , ,os.mkdir(dirname)
, ,flag = False
, ,bina = False
, ,S = ''
, ,#------------------------
, ,path = os.getcwd()
, ,fin = os.path.join(path, filename)
, ,f = open(fin, 'rb')
, ,d = f.read()
, ,
, ,for n in d:
, , , ,if bina:
, , , , , ,if chr(n) == '<':
, , , , , , , ,print('5')
, , , , , , , ,dd = base64.urlsafe_b64decode(S) #()
, , , , , , , ,hh = open(os.path.join(dirname, name_Pic), 'wb')
, , , , , , , ,hh.write(dd)
, , , , , , , ,hh.close()
, , , , , , , ,bina = False
, , , , , ,else:
, , , , , , , ,S = S + chr(n)
, , , , , ,continue
, , , ,if chr(n) == '<': # начало тега
, , , , , ,
, , , , , ,flag = True