This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Sample PLOS api code for use with python Solr library Sunburnt | |
#( https://github.com/tow/sunburnt ) | |
#!Note! requires sunburnt's external libraries: httplib2,lxml | |
#https://groups.google.com/d/topic/plos-api-developers/zv591sFz6TM/discussion | |
import sunburnt,urllib2 | |
class PlosInterface(sunburnt.SolrInterface): | |
def __init__(self,api_key): | |
plos_url = "http://api.plos.org/search" | |
#either |