Skip to content

Instantly share code, notes, and snippets.

@jaboutboul
Created August 30, 2012 21:15
Show Gist options
  • Save jaboutboul/3541222 to your computer and use it in GitHub Desktop.
Save jaboutboul/3541222 to your computer and use it in GitHub Desktop.
kivikfinder-soup
soup=BeautifulSoup(html, "lxml") #create soup object from page response
loc=soup.findAll("div", {"class": "sc_com_locationNo sc_find_it_location_number"}) #try to find loc & bin
locsize=len(loc)
#is location available
if(locsize==0):
return findproblems(html,soup,br,userid,number)
response= pullInfo(html,br,userid,number)
return sendOut(response,number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment