Created
March 31, 2016 21:55
-
-
Save kraravind/0fa38da651104a73eb233b79843b7814 to your computer and use it in GitHub Desktop.
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
k6=soup1.find_all('span', class_="detail_cell") | |
#k7=soup1.find_all('span', class_="detail_cell last_detail_cell") | |
details=[] | |
for j in range(0,len(k6)): | |
details.append(k6[j].string) | |
#to locate length of detail | |
for p in range(0,len(k6)): | |
cls = k6[p].get('class') | |
if len(cls)==2: | |
if cls[1]=='last_detail_cell': | |
lim=p | |
break | |
details=details[0:lim+1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment