Skip to content

Instantly share code, notes, and snippets.

View qgeissmann's full-sized avatar
🪲
Sticking and trapping

Quentin Geissmann qgeissmann

🪲
Sticking and trapping
View GitHub Profile
@drewbuschhorn
drewbuschhorn / plos_sunburnt_demo.py
Created July 12, 2011 03:06
PLOS API code for use with SunBurnt
#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