| Conditions | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import requests |
||
| 23 | def report_reporter(soup): |
||
| 24 | """Returns a string with the current Snow Reporter's name""" |
||
| 25 | report_div = soup.find('div', {'class': 'daily-report'}) |
||
| 26 | reporter = report_div.find('div', {'class': 'signature'}).find('strong') |
||
| 27 | try: |
||
| 28 | return reporter.contents[0] |
||
| 29 | except AttributeError: |
||
| 30 | return None |
||
| 31 | |||
| 35 | return BeautifulSoup(r.content, 'lxml') |