I’ve created a simple and easy-to-use Python library to handle the client implementation of the Pingback 1.0 protocol. The pingback.py script handles all aspects of a client, including automatically parsing HTML and reStructredText for hyperlinks which should be checked.
Pingback can now be implemented by other Python projects by using one of the following functions:
def autoPingback(sourceURI, reST = None, HTML = None):
"""Scans the input text, which can be in either reStructuredText or HTML
format, pings every linked website for auto-discovery-capable pingback
servers, and does an appropriate pingback."""
...
def pingback(sourceURI, targetURI):
"""Attempts to notify the server of targetURI that sourceURI refers to
it."""
...
The documentation at the top of the module describes how one might implement a Pingback server by using the SimpleXMLRPCServer module, as well.
[...] Python library for pingback [...]
Pingback by Pingback « Rudimentary Art of Programming & Development — 2009/03/12 @ 11:49 pm
[...] Finally getting around to implementing linkback functionality for my links…for links in new posts, I’ll test pingback, stop there if it works, and try trackback if pingback isn’t enabled. Thanks to Teli Adlam for a very clear tutorial on linkback (esp. ettiquette), and an URL to test against without being considered evil. Also to Mathieu Fenniak and Matt Croydon for the pingback and trackback libraries I’m using, respectively. [...]
Pingback by Kenzoid’s Autonomous Zone » Blog Archive » Linkback enabled — 2009/03/30 @ 10:37 pm