Extract.py

(.*?) recipe


By A recipe of Extract.py. Click here to read more.
4.1198” res = re.findall(reg_str, f,re.DOTALL) print (res) #pogledam ce je obstaja h3 try: if len(res[0].replace(“\n”,””).strip()) != 0: print (“je”) string_name = “”; for c in res: string_name += c print(string_name) string_name=string_name.replace(“\n”, “”) string_name=string_name.replace(“\r”, “”) #string_name=string_name.replace(“\n\r”, ” “) string_name=string_name.replace(“>“,””) string_name=string_name.replace(“‘,”) #print(string_name) filename=string_name #print (filename) os.rename(i,str(filename+’.upload’)) #print(“The Strings extracted : ” + str(res)) else: print (‘EMPTY’) continue except: pass