github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

anarchivist / pybhl

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Python module to interact with the Biodiversity Heritage Library API — Read more

  cancel

http://matienzo.org/project/pybhl

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

modified gitignore to exclude builddirs etc from setuptools 
anarchivist (author)
Mon Oct 19 20:20:22 -0700 2009
commit  6536f3b02fe4dce1733749ee8a2c4530300966c7
tree    3ea2f1dc4ab525c28e91586ee59e8c5d227fd9dc
parent  ad587e0eabf206862854619e9995b49dd78ca2b2
pybhl /
name age
history
message
file .gitignore Loading commit data...
file COPYING
file Changes
file README
directory pybhl/
file setup.py
README
DESCRIPTION
-----------

pybhl is a Python module that works with the Biodiversity Heritage Library
(BHL) OpenURL-based API to retrieve metadata about material held in the BHL's
online collections. pybhl is loosely based on mjy's rubyBHL (see
http://github.com/mjy/rubyBHL for code, etc.).

DEPENDENCIES
------------

* simplejson or Python >= 2.6
* BeautifulSoup


INSTALLATION
------------

You can use easy_install to install the module:

    easy_install pybhl

If you prefer, you can get the latest version of the source using Git

    git clone git://github.com/anarchivist/pybhl.git

To install:

    python setup.py install
    
USAGE
-----

>>> import pybhl
>>> b = pybhl.BHLOpenURLRequest(genre='book', title='Manual of North American Diptera', aufirst='Samuel Wendell', 
aulast='Williston', date='1908', spage='16')
>>> r = b.get_response()
>>> r.data
{u'Status': 1, u'Message': u'', u'citations': [{u'Title': u'Manual of North American Diptera /  by Samuel W. 
Williston.', u'ATitle': u'', u'ItemUrl': u'http://www.biodiversitylibrary.org/item/16772', u'Subjects': [u'Diptera', 
u'North America', u''], u'PublisherName': u'J.T. Hathaway,', u'Volume': u'', u'Lccn': u'08024896', u'Authors': 
[u'Williston, Samuel Wendell,'], u'Date': u'1908', u'Pages': u'', u'PublicationFrequency': u'', u'TitleUrl': 
u'http://www.biodiversitylibrary.org/bibliography/1704', u'Language': u'English', u'Url': 
u'http://www.biodiversitylibrary.org/page/1316635', u'Issn': u'', u'Genre': u'Book', u'PublisherPlace': u'New Haven :', 
u'EPage': u'', u'SPage': u'Page 16', u'STitle': u'', u'Isbn': u'', u'Edition': u'3rd ed. ', u'Oclc': u'6445326'}]}
>>> r.get_ocr_url(0)
u'http://www.archive.org/download/manualofnorthame00will/manualofnorthame00will_djvu.txt'

MORE INFORMATION
----------------

Biodiversity Heritage Library
- http://www.biodiversitylibrary.org/

BHL's OpenURL Resolver
- http://www.biodiversitylibrary.org/openurlhelp.aspx

OpenURL 0.1
- http://alcme.oclc.org/openurl/docs/pdf/openurl-01.pdf

OpenURL 1.0
- http://www.niso.org/kst/reports/standards?step=2&project_key=d5320409c5160be4697dc046613f71b9a773cd9e
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server