From: Svenne Krap Date: Sun, 1 Jul 2012 11:14:11 +0000 (+0200) Subject: make file easier to parse (move title to end, enclose it in quotes) X-Git-Url: https://git.svenne.dk/?a=commitdiff_plain;h=5da41fa31a779093335785750fd7b060967ab240;p=public%2Fmisc-sysadmin.git make file easier to parse (move title to end, enclose it in quotes) --- diff --git a/save_firefox_urls.py b/save_firefox_urls.py index e030ae3..57cf0cf 100755 --- a/save_firefox_urls.py +++ b/save_firefox_urls.py @@ -68,9 +68,9 @@ for w in range(windows): continue print (" Found:") print (" Entry: " + str(e)) - print (" Title: " + title) print (" Url : " + url) - outfp.write( str(w) + " " + str(t) + " " + str(e) + " " + title + " " + url + "\n") + print (" Title: " + title) + outfp.write( str(w) + " " + str(t) + " " + str(e) + " " + url + " \"" + title + "\"\n") outfp.close() print ("Saved as " + outfile)