Skip to content

Commit

Permalink
Fix erronous author due to markup changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cykl committed Apr 10, 2017
1 parent cc90f06 commit 2ce40b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infoqscraper/scrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_date(pres_div):
raise Exception("Failed to extract date (markup changed?)")

def get_author(pres_div):
return pres_div.find('span', class_='author_general').contents[1].get_text().strip()
return pres_div.find('span', class_='authors-list').find('a').get_text().strip()

def get_timecodes(pres_div):
for script in pres_div.find_all('script'):
Expand Down

0 comments on commit 2ce40b8

Please sign in to comment.