Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
Last active December 21, 2015 21:48
Show Gist options
  • Save tomkralidis/6370814 to your computer and use it in GitHub Desktop.
Save tomkralidis/6370814 to your computer and use it in GitHub Desktop.
import sys
import csv
from slugify import slugify
with open('posts.csv') as csvfile:
for row in csv.reader(csvfile):
slug = '%s-%s' % (row[0], slugify(unicode(row[1])))
content = '''---
layout: default
title: %s
---
# [%s (link)](%s)
''' % (row[1], row[1], row[2])
filename = '%s.md' % slug[:64]
with open(filename, 'w') as sw: sw.write(content)
2013-08-22 pycsw 1.6.1 released http://lists.osgeo.org/pipermail/pycsw-devel/2013-August/000239.html
2013-06-28 pycsw 1.6.0 released /development/announce/1.6.0.html
2013-06-26 Oregon Coastal & Marine Data Network pycsw Workshop Materials Available http://www.coastalmarinedata.net/?p=229
2013-06-07 pycsw 1.4.2 released http://lists.osgeo.org/pipermail/pycsw-devel/2013-June/000206.html
2013-04-12 pycsw enters OSGeo Incubation http://lists.osgeo.org/pipermail/pycsw-devel/2013-April/000180.html
2013-03-26 pycsw 1.4.1 released http://lists.osgeo.org/pipermail/pycsw-devel/2013-March/000179.html
2013-02-21 pycsw on OSGeo-Live 6.5 http://lists.osgeo.org/pipermail/discuss/2013-February/011394.html
2013-01-14 pycsw Receives OGC Compliance Certification and Reference Implementation Status http://lists.osgeo.org/pipermail/pycsw-devel/2013-January/000161.html
2012-09-10 pycsw 1.4.0 released http://lists.osgeo.org/pipermail/pycsw-devel/2012-September/000130.html
2012-08-21 pycsw on OSGeo-Live 6.0 http://lists.osgeo.org/pipermail/discuss/2012-August/010844.html
2012-04-08 pycsw 1.2.0 released http://lists.osgeo.org/pipermail/pycsw-devel/2012-April/000088.html
2012-02-28 pycsw on OSGeo-Live 5.5 http://lists.osgeo.org/pipermail/discuss/2012-February/010151.html
2012-01-28 project updates http://lists.osgeo.org/pipermail/pycsw-devel/2012-January/000059.html
2011-06-29 pycsw 1.0.0 released http://lists.osgeo.org/pipermail/pycsw-devel/2011-June/000046.html
2011-04-20 pycsw 0.1.0 released http://lists.osgeo.org/pipermail/pycsw-devel/2011-April/000025.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment