GitXplorerGitXplorer
b

mcmasala

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
f4cc7132887eff946e3a77b9abc4facdd0c436b6

Currently unmaintained

bbrainwane committed 7 years ago
Unverified
97e5ddff1bdc9b3d15b38a18f6e36a47355dd93d

rename

bbrainwane committed 10 years ago
Unverified
ae4d6eb5837a49d1ae6043020c1113aeb8eff826

Merge branch 'master' of github.com:brainwane/mcmasala

bbrainwane committed 10 years ago
Unverified
55f424f0ce0cf169b95ac90e22f71757b5ff386d

refactoring per code review

bbrainwane committed 10 years ago
Unverified
908aae09f51c28b7787a129fe77e9c64621fd8d5

linebreaks and pep8 fixes

bbrainwane committed 10 years ago
Unverified
b36116df310f6f752e1f853281fb8c180d2f56db

better linespacing

bbrainwane committed 10 years ago

README

The README file for this repository.

Site | History | To-do

MC Masala

This repository is for the website containing Sumana Harihareswara's MC Masala newspaper columns -- a static text site with a simple search engine.

Site

The site is at harihareswara.net/mcmasala/. This repository contains the back-end scripts I wrote for munging the text, the CSS for styling the site, and the code and hooks for the search.

Requires:

  1. Python 3
  2. Beautiful Soup 4 and Pystache
  3. Nodejs
  4. Lunr.js and jQuery - I used this plugin plus lunr.min.js

Run:

  1. python3 json_output.py to create the data file for Lunr to search
  2. edit the JSON file slightly to turn the list into the value for a dictionary whose value is "pages"
  3. nodejs build_index.js to create Lunr.js's index file
  4. python3 spitouthtml.py to create the index.html and individual story files

History

Between April 2005 and August 2007, I wrote a weekly column called "MC Masala" for the "Inside Bay Area" section of several papers in the San Francisco Bay Area, including the Oakland Tribune. My work circulated to about a million people, I'm told. In 2011 I made an abortive attempt to get the columns online but wasn't a strong programmer and thus gave up on all the fiddly bits. Then, while at the Recurse Center, I figured this would be a fun and useful way to learn Beautiful Soup and learn to finagle a search engine. I wrote up a more detailed making-of.

No Maintenance Intended

To-do

  • improve de-duplication (checking dates and headlines)
  • fix Unicode-type character issues
  • figure out why only including search.min.js and not lunr.min.js causes registration problems
  • treat pullquotes and "write to her at" lines better
  • use Pystache more thoroughly instead of string concatenation & other hacks