473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CSV to Browser Bookmark file

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
1 1765
>>>>> "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris | last post by:
I have been learning C and want to write a program and need someone to point me in the write direction. I want to write a program to store all my webpage bookmarks in possibly one file. I want it...
13
by: Seth Grimes | last post by:
Hello all, I want to open a window when a user leaves my site. I set up a function called by onUnload. To skip the window.open if the user hasn't left my site, I set a variable in my links and...
7
by: Danny | last post by:
Hello: I would like to develop a browser extension, or whatever such a thing is classified as, that would allow a user of IE6, and possibly IE7, to switch between a live and development page. ...
1
by: cally | last post by:
Hi folks We use UIMX (essentially Motif) , gcc and Python in Linux RHE. We are looking at changing the Help system for our application. Previously we clicked on a dialog help button and this...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.