This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf8 -*- | |
import urllib2, json, subprocess, gzip | |
from time import sleep | |
from StringIO import StringIO | |
def parse(): | |
num = int(item["msgs"]) - item["read_msgs"] | |
if num > 0: | |
subprocess.call(["notify-send", item["title"] , str(num) + " új hozzászólás", "-t" , "5000"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import urllib.request | |
import time | |
import os | |
url = "https://community.linuxmint.com/data/new-reviews.list" | |
CACHE_DIR = os.path.expanduser("~/") | |
reviews_path_tmp = os.path.join(CACHE_DIR, "reviews.list.tmp") |