By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

CSV to Browser Bookmark file

P: n/a
I currently have all of my Bookmarks under WinXP in a PIM, which will allow
me to export them as a CSV file
( fields are "Category,Page-Title,URL,Comments - all fields of no fixed
length).

Is there a program/script that will output the info from csv to a browser
bookmark file - Any browser as I want to move the bookmarks from Windows to
Linux - unfortunately the PIM wont run under Wine in Linux and I am not a
programmer so I have no idea how to convert the file.

Thanks in advance for any help.

Bill
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
>>>>> "Bill" == Bill <bi***@isp.net.au> writes:

Bill> I currently have all of my Bookmarks under WinXP in a PIM, which
Bill> will allow me to export them as a CSV file ( fields are
Bill> "Category,Page-Title,URL,Comments - all fields of no fixed
Bill> length).

Bill> Is there a program/script that will output the info from csv to a
Bill> browser bookmark file - Any browser as I want to move the
Bill> bookmarks from Windows to Linux - unfortunately the PIM wont run
Bill> under Wine in Linux and I am not a programmer so I have no idea
Bill> how to convert the file.

I don't know what your output format is supposed to look like, but reading
the input CSV file is trivial. Assuming it's named "mybookmarks.csv", you
can read it and emit some HTML fragments using something like this:

import csv

rdr = csv.DictReader(file("mybookmarks.csv"))
for row in rdr:
print '<a href="%(URL)s">%(Page-Title)s</a>' % row

There's going to be more to the output side of things than that. Save your
browser's bookmarks as an HTML file and look at it for hints of what other
print statements you need.

Skip

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.