Skip to content

Instantly share code, notes, and snippets.

View gist:e16f48db2247f00912ee1c1a3142da97
<form id="4739948" builderversion="5.0.0" labelplacement="labelsAbove" fieldhintplacement="hintsBelow" showContactLink="true" contactLinkLabel="Contact Information" shouldResetContactLinkLabelOnTranslate="true" contactLink="https://veerwest.formassembly.com/forms/help/4739945" showGDPRLink="false" gdprLinkLabel="Your Rights Under GDPR" shouldResetGDPRLinkLabelOnTranslate="true" gdprLink="https://www.formassembly.com/gdpr-rights" themeid="47070" css="/uploads/themes/theme-47070.css" name="SD test 1 (copy)" language="en_US" dbFormId="4739948"><action type="submit" level="primary" label="Submit"/><title plain="SD test 1"><![CDATA[SD test 1]]></title><fieldset type="div" id="tfa_39" name=""><fieldset type="div" id="tfa_34" name=""><field id="tfa_35" type="textinput" sensitive="GEN-OTHER" sensitiveaction="encrypt" sensitivelabel="General Sensitive Data" sensitiveparty="none"><label plain="General_4"><![CDATA[General_4]]></label><value>default_general</value></field><field id="tfa_36" type="textinput" sensitive="PI
@drewbuschhorn
drewbuschhorn / plos_sunburnt_demo.py
Created Jul 12, 2011
PLOS API code for use with SunBurnt
View plos_sunburnt_demo.py
#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