66596 commited on
Commit
0b1cc37
·
1 Parent(s): 2de345c

refactor: modify search query and max num news

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,8 +61,8 @@ if company:
61
  links = []
62
  news_text = []
63
 
64
- query = f'{company} after:2023-01-01'
65
- response = google_search(query, API_KEY, SEARCH_ENGINE_ID, num=10)
66
 
67
  url_collection = [item['link'] for item in response]
68
  import os
 
61
  links = []
62
  news_text = []
63
 
64
+ query = f'{company}'
65
+ response = google_search(query, API_KEY, SEARCH_ENGINE_ID, num=50)
66
 
67
  url_collection = [item['link'] for item in response]
68
  import os