Spaces:
Sleeping
Sleeping
Update news_scanner.py
Browse files- news_scanner.py +2 -1
news_scanner.py
CHANGED
|
@@ -35,4 +35,5 @@ def scan_news():
|
|
| 35 |
soup = BeautifulSoup(r_html, "html.parser")
|
| 36 |
scripts = soup.find_all('a')
|
| 37 |
headlines = [h.get_text().strip() for h in scripts if len(h.get_text().split(' '))>=5]
|
| 38 |
-
return headlines[:
|
|
|
|
|
|
| 35 |
soup = BeautifulSoup(r_html, "html.parser")
|
| 36 |
scripts = soup.find_all('a')
|
| 37 |
headlines = [h.get_text().strip() for h in scripts if len(h.get_text().split(' '))>=5]
|
| 38 |
+
return headlines[:1]
|
| 39 |
+
|