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.

Source Distribution

lauteur-0.0.6.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lauteur-0.0.6.macosx-10.9-intel.exe (67.8 kB view details)

Uploaded Source

File details

Details for the file lauteur-0.0.6.tar.gz.

File metadata

  • Download URL: lauteur-0.0.6.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lauteur-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f63304e2a955828b0cbb750cb3974c6097fddd64bdb610a3834258b983766b65
MD5 51d8b511abc9d7a38024ae4ecf90ef10
BLAKE2b-256 8663170dc4813813ef40661f8f892ccc046e0efd7071464ce7de4fb204d141be

See more details on using hashes here.

File details

Details for the file lauteur-0.0.6.macosx-10.9-intel.exe.

File metadata

File hashes

Hashes for lauteur-0.0.6.macosx-10.9-intel.exe
Algorithm Hash digest
SHA256 a79243f3de2954ba47a80ce8de460549ac5824f5813d2d3d42c0aeb40433dd91
MD5 ba57f9520f7be924ce720103d1b11b01
BLAKE2b-256 aee3064ee465f88e6f686a1992de4de98cf19f944e5c1e86b6b966db5eb85aca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page