-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·41 lines (33 loc) · 1.08 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
from presentation.vars import arguments
from presentation.vars.arguments import set_origin_language, set_target_language, set_news_type
from presentation.visualization import results
from presentation.visualization.results import scored_news
from bussiness_logic.data_processing import TemplateFilters, filters
# from presentation.user_interface import interface
from presentation.user_interface import interface
def show_news():
filters.filterNews(arguments.NEWS_TYPE)
for _ in TemplateFilters.filtered_list:
print(_)
def show_nonfiltered_news():
for _ in scored_news:
print(_)
if __name__ == '__main__':
#newspaper_arg, n_news = arguments.arguments()
#url = newspaper_arg
'''
#url = "https://www.eltiempo.com/"
url = "https://www.nytimes.com/"
news_number = 10
set_origin_language('en')
set_target_language('es')
set_news_type('b')
results.execute_search(url, news_number)
if arguments.NEWS_TYPE == '':
show_nonfiltered_news()
else:
show_news()
'''
#interface
interface