Skip to content

Instantly share code, notes, and snippets.

@kraravind
Created March 31, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kraravind/0fa38da651104a73eb233b79843b7814 to your computer and use it in GitHub Desktop.
Save kraravind/0fa38da651104a73eb233b79843b7814 to your computer and use it in GitHub Desktop.
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