| Conditions | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import requests |
||
| 10 | def report_text(soup): |
||
| 11 | """Returns the HTML paragraphs from the daily report""" |
||
| 12 | report_div = soup.find('div', {'class': 'daily-report'}) |
||
| 13 | output = '' |
||
| 14 | |||
| 15 | paragraphs = report_div.find_all('p') |
||
| 16 | |||
| 17 | for p in paragraphs: |
||
| 18 | output += p.decode() |
||
| 19 | |||
| 20 | return output |
||
| 21 | |||
| 35 | return BeautifulSoup(r.content, 'lxml') |