shantz-csv-to-opml
Blog | Tech Blog | Secure Coding | Twitter | RSS Feed | Get Email Updates
—-
Download:
shantz-csv-to-opml.pl
Version:
0.1
Updated:
March 28, 2008
Size:
1.65 KB
Hits:
530
INTRODUCTION
This is a very simple script that I did for a friend. It can be used to quickly generate blogrolls.
Input: csv file with blog author names and blog links
Output: OPML file that can be imported into many blogging/blogrolling software and websites (e.g. wordpress, blogrolling.com, etc)
Usage:
shantz-csv-to-opml.pl <input file in csv format> <output opml filename>
Input File Format:
Each line should be like this:
<Name of Author>,<bloglink>,<bloglink>…
e.g.
Shantanu Goel, http://tech.shantanugoel.com, http://blog.shantanugoel.com
There can be any number of blogs for any author, if blogs are more than one, then multiple entries for that author will be made in opml file each indexed with increasing number like Shantanu Goel 1, Shantanu Goel 2, etc
Version History:
0.1 – Initial Version
© Shantanu Goel | shantz-csv-to-opml
|
Liked this post? Get FREE Updates Subscribe to RSS feed |







This post has 2 comments
August 15th, 2010
Hello There, this looks perfect for what i am trying to accomplish, but my lack of PERL knowledge is proving to be barrier.
Can I run this script on my local MAc OSx machine? Or a web server?
Where do I specify the input .csv file?
Thanks, Malcolm
August 15th, 2010
malcolm, you can run it on your local machine as well as web server. Only pre-requisite is that perl should be installed on the system. You have to specify the input as well as output file names on the command line itself after the script name as mentioned in the article. e.g., if you input file is myinput.csv and output is myoutput.opml, then you have to run “shantz-csv-to-opml.pl myinput.csv myoutput.opml” without the quotes.
Trackbacks