Skip to main content

Tools for ascribing authorship - to the chagrin of Barthes

Project description

travis-img lauteur ====== Tools for ascribing authorship - to the chagrin of `Barthes <http://en.wikipedia.org/wiki/Death_of_the_Author>`__

Install

pip install lauteur

Test

Requires nose

nosetests

Usage

lauteur has two methods: from_string and from_html

from_string is mostly used in RSS Feed parsing where authors are sometimes embedded as bylines:

import lauteur

string = 'By: Brian Abelson ,and Michael H. Keller & Dr. Stijn Debrouwere IV'
authors = lauteur.from_string(string)
print authors

# ['Brian Abelson', 'Michael H Keller', 'DR Stijn Debrouwere IV']

from_html searches through common meta tags for authors.

import lauteur
import requests

r = requests.get('http://www.nytimes.com/2013/12/20/books/michiko-kakutanis-10-favorite-books-of-2013.html')

authors = lauteur.from_html(r.content)
print authors
# ['Michiko Kakutani']

Todo:

  • [ ] Find more meta tags.
  • [ ] Improve name formatting algorithm.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lauteur-0.0.6.macosx-10.9-intel.exe (67.8 kB) Copy SHA256 hash SHA256 Windows Installer any
lauteur-0.0.6.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page