This file contains hidden or 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
import sys | |
from subprocess import Popen, PIPE | |
def notify(title, body=None, timeout=-1, appname='simple-notify'): | |
cmd = [ | |
'dbus-send', | |
'--type=method_call', | |
'--print-reply=literal', | |
'--dest=org.freedesktop.Notifications', | |
'/org/freedesktop/Notifications', |
This file contains hidden or 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/env python2 | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import os.path | |
from urllib2 import build_opener | |
from urllib import urlencode | |
from lxml import html |
This file contains hidden or 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/env python2 | |
import sys | |
import re | |
from urllib2 import build_opener, HTTPCookieProcessor | |
from urllib import urlencode | |
from cookielib import CookieJar | |
from netrc import netrc |
NewerOlder