Skip to content

Instantly share code, notes, and snippets.

View jalsco's full-sized avatar

Jalsco jalsco

View GitHub Profile
@stuartlangridge
stuartlangridge / pelican-webmentions.py
Created November 29, 2014 17:24
Pelican plugin for webmentions. This will not work out of the box for you; it's too kryogenix.org-specific. But it may help.
from pelican import signals
import json, urllib, urlparse, datetime, html5lib, os, codecs
LIVESITEURL = ""
WM_CACHE_PATH = None
WM_CACHE = {
"domains": {},
"pinged": {}
}