We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786599b commit 607e3a6Copy full SHA for 607e3a6
Desktop News Notifier/Readme.md
@@ -29,7 +29,6 @@
29
- plyer
30
- requests
31
- json
32
- - time
33
34
## Author
35
Desktop News Notifier/script.py
@@ -1,4 +1,4 @@
1
-import time
+
2
from plyer import notification
3
import requests
4
import json
@@ -13,13 +13,12 @@
13
for i in range(10):
14
15
notification.notify(
16
- title = data['articles'][i]['title'],
17
- message= data['articles'][i]['description'] ,
+ title = data['articles'][i]['title'][:20],
+ message= data['articles'][i]['description'][:44] ,
18
# displaying time
19
- timeout=2 ,
+ timeout=5 ,
20
toast=False)
21
22
- # waiting time
23
- time.sleep(7)
24
25
0 commit comments