Skip to content

Instantly share code, notes, and snippets.

@m-note
Created July 15, 2015 18:47
Show Gist options
  • Save m-note/cbb6b320c0bd005aa69c to your computer and use it in GitHub Desktop.
Save m-note/cbb6b320c0bd005aa69c to your computer and use it in GitHub Desktop.
searchKeyword
def searchKeyword(speaker, startRec=1, any="", Dfrom="0000-01-01", Duntil="9999-12-31"):
if len(any) > 0:
search = "startRecord=" + str(startRec) + "&" + "any=" + any + "&" + "speaker=" + speaker + "&from=" + Dfrom + "&until=" + Duntil
else:
search = "startRecord=" + str(startRec) + "&" + "speaker=" + speaker + "&from=" + Dfrom + "&until=" + Duntil
return search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment