islasher commited on
Commit
8e2d8c3
·
verified ·
1 Parent(s): fd6e0bf

Update news_scanner.py

Browse files
Files changed (1) hide show
  1. 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[:5]
 
 
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
+