Created
August 30, 2012 21:15
-
-
Save jaboutboul/3541222 to your computer and use it in GitHub Desktop.
kivikfinder-soup
This file contains 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
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