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 4, 2015
1 parent 8dbb439 commit 4bf1c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -77,7 +77,7 @@ def Detail_left_fc(htmltext):
Detail_left=str(htmltext.find('div',{"class":"detail_left"}).contents)
a=Detail_left.split('<h4>')
Description=a[1].split('</h4>')
Description=Description[1].encode('ascii','ignore')
Description=Description[1]
Description=BeautifulSoup(Description).text
Description=Description.strip(', ')
Description=suittext(Description)
Expand All @@ -88,7 +88,7 @@ def Description_awarded(htmltext):
a=Detail_left.split('<h4>')
Des=a[1].split('</h4>')
Description=Des[1].split('<table class="additional_data">')
Description=Description[0].encode('ascii','ignore')
Description=Description[0]
Description=BeautifulSoup(Description).text
Description=Description.strip(', ')
Description=suittext(Description)
Expand Down

0 comments on commit 4bf1c22

Please sign in to comment.