Quantcast
Channel: Fountain City Code
Viewing all articles
Browse latest Browse all 31

Creating a static blog engine in Python (Day 1)

$
0
0
When I learn something new, I try to start out simple and work on a well understood problem.  With that in mind, I'm making a static blog generator.

I'm bouncing around a few ideas:

  • Use markdown as the format for my posts.
  • Migrate blogger.com posts
  • Decide on a Template engine
  • Decide on a mobile/responsive design css/html template
  • Javascript framework

Right now I'm using blogger.com and my first step was to get the data out of blogger and into something more useful.  Enter CSB.

I'm using BeautifulSoup to parse the blogger export.  LXML should have worked, but either this author doesn't know what he's doing or blogger/lxml has a bug (definitely the former).  I'm reading the file in and dumping out individual xml files for each post with a date for the file name.  Simple enough.

Why am I going to use a js framework? No good reason.  More of a learning thing than anything else.  I might dump that idea depending on how it works with Google search.

Viewing all articles
Browse latest Browse all 31

Trending Articles