" + item['desc'] + "
\n" self.link += "" + item['tag'] + "
#!/usr/bin/python # Created by Matteo Rattotti on 13/03/06. # Copyright (c) 2006 Matteo Rattotti. All rights reserved. # Contact matteo.rattotti@gmail.com for any problem # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ''' Html exporter for del.icio.us bookmarks ''' __version__ = "0.1" __author__ = "Matteo Rattotti" __contact__ = "http://www.rknet.it" __date__ = 'Sat Dec 17 02:40:11 2005' __timestamp__ = '1134783611' import deliLoader class exporter: def __init__(self, store, filePath): self.store = store self.setAnchor() self.printLink() data = self.renderPage() data = data.encode("utf-8") file = open(filePath, 'w') file.write(data) file.close() def setAnchor(self): self.anchor = "