Tools for ascribing authorship - to the chagrin of Barthes
Project description
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.
Source Distribution
lauteur-0.0.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for lauteur-0.0.3.macosx-10.9-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a500d7c4a0f3a6a044577b722254b4a58df71a1cc3410329dde6b21b80742975 |
|
MD5 | 69cc5114b7fbbbb3e7cfacfd90343cc0 |
|
BLAKE2b-256 | 83bf6add2203c85b786ff91ff9c0537a0d19f1f11c7c823077bc821021ad840d |