-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
36 lines (28 loc) · 869 Bytes
/
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
from ExportTvTime.tv_time import ExportTvTimeData
def main():
with ExportTvTimeData() as my_tvtime:
shows = my_tvtime.get_list_followed_shows()
print(type(shows))
sorted_shows = my_tvtime.change_columns_order(shows)
print(type(sorted_shows))
keep_columns = my_tvtime.delete_columns(
sorted_shows,
[
"followed",
"last_seen",
"next_aired",
"diffusion",
"folder",
"notification_type",
"is_web_serie",
"hashtag",
"number_of_seasons",
"favorite",
"last_aired",
"all_images",
],
True
)
my_tvtime.create_csv_file(keep_columns)
if __name__ == "__main__":
main()