Skip to content

Commit 607e3a6

Browse files
committed
Update
1 parent 786599b commit 607e3a6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Desktop News Notifier/Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
- plyer
3030
- requests
3131
- json
32-
- time
3332

3433
## Author
3534

Desktop News Notifier/script.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import time
1+
22
from plyer import notification
33
import requests
44
import json
@@ -13,13 +13,12 @@
1313
for i in range(10):
1414

1515
notification.notify(
16-
title = data['articles'][i]['title'],
17-
message= data['articles'][i]['description'] ,
16+
title = data['articles'][i]['title'][:20],
17+
message= data['articles'][i]['description'][:44] ,
1818
# displaying time
19-
timeout=2 ,
19+
timeout=5 ,
2020
toast=False)
2121

22-
# waiting time
23-
time.sleep(7)
22+
2423

2524

0 commit comments

Comments
 (0)