Export Favorites to a text file

  • Thread starter Thread starter Olaf Coolic
  • Start date Start date
O

Olaf Coolic

Hi there,

How can I export my favorites to a textfile.
I have to create a file like this for a java Treeview applet:

The first number is the level of the folder
the second number is the number for a gif file (forget about that)
Than comes the Titel
And then the URL

1 4 "Favorites" " "
2 2 "Dictionary" " "
3 4 "Lexicon" " "
4 5 "IT-TechTarget" "http://whatis.techtarget.com/@_new"
4 5 "IT-Webopedia" "http://www.webopedia.com/@_new"
4 5 "ISP Glossary" "http://isp.webopedia.com/@_new"
3 4 "Other Useful Information" " "
4 5 "Chiefs of States"
"http://www.odci.gov/cia/publications/chiefs/@_new"
4 5 "Maps" "http://www.cia.gov/cia/publications/mapspub/@_new"
3 5 "Dictionary24" "http://www.dictionary24.com/index.htm@_new"
3 5 "Leo" "http://dict.leo.org/?lang=en@_new"
3 5 "Dictionary.com" "http://dictionary.reference.com/@_new"
3 5 "Cambridge" "http://dictionary.cambridge.org/@_new"
2 3 "IT-Resources" " "
3 4 "IT News" " "
4 6 "SANS - Reading Room" "http://www.sans.org/rr/@_new"
4 6 "InformationWeek" "http://www.informationweek.de@_new"
4 5 "Computer Business review"
"http://www.cbronline.com/index.htm@_new"
4 5 "PC Magazine" "http://www.pcmag.com@_new"
3 4 "Virus / Hoax / Trojan" " "
4 5 "Newly Discovered Viruses - NAI"
"http://vil.nai.com/VIL/newly-discovered-viruses.asp@_new"
4 5 "Removal Tools - Symantec"
"http://www.symantec.com/avcenter/tools.list.html@_new"
4 5 "Free Anti-Virus" "http://www.grisoft.com@_new"
4 5 "Online Virusscan"
"http://housecall.antivirus.com/housecall/start_corp.asp@_new"
4 5 "Online Trojan Scan" "http://www.trojanscan.com@_new"
4 5 "Online Virusscan McAfee"
"http://us.mcafee.com/root/mfs/default.asp@_new"


Thanks
Olaf
 
Olaf Coolic said:
How can I export my favorites to a textfile.
I have to create a file like this for a java Treeview applet:

The first number is the level of the folder
the second number is the number for a gif file (forget about that)
Than comes the Titel
And then the URL

1 4 "Favorites" " "
2 2 "Dictionary" " "
....
Hello Olaf,
presuming we talk about favorites from IE, start with import/export from
the file menu. Look at the structure of the resulting bookmark.htm file.

The conversion to your above structure can, with some effort, be done
with a batch and some tools, but it looks more like a task for gawk or
xml,xsl etc.

Track level of folder with openeing <DL> and closing </DL> folder
store <A Href link and more difficult the description before the
closing of the </A>.

Hmm you will definitly need regexp to do that.

I don't know a ready tools for such a task.
 
Back
Top