Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahed committed Nov 24, 2015
1 parent e65212e commit abec7f9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scraper.py
Expand Up @@ -101,12 +101,9 @@ def Table(htmltext,id) :
return str(Table[id])

def Contact(htmltext):
Contact_Details= str(htmltext.find('div',{"class":"highlight_contact_bd"}).findNext('p').contents)
c=Contact_Details.split('<br/>')
m= c[0]+c[1]
m=BeautifulSoup(m).text
m=suittext(m)
return m.strip(', ')
Contact_Details= str(htmltext.find('div',{"class":"highlight_contact_bd"}).findNext('p').text)

return Contact_Details

def date(dat):
d=dat.split(' ')
Expand Down

0 comments on commit abec7f9

Please sign in to comment.