Created
February 11, 2013 01:49
-
-
Save Azelphur/4751932 to your computer and use it in GitHub Desktop.
How to use pushbullet with utorrent
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
| from pushbullet import PushBullet | |
| import sys | |
| """ | |
| Simple torrent download completed notification, should work with anything that can execute a command, like utorrent. | |
| In utorrent set your command to execute as... | |
| C:\Python\Python3.exe "user@gmail.com" "password" "%N" | |
| """ | |
| p = PushBullet() | |
| p.signIn(sys.argv[1], sys.argv[2]) | |
| devices = p.getDevices() | |
| data = {'type' : 'note', | |
| 'device_id' : devices[0]["id"], | |
| 'title' : "Torrent downloaded", | |
| 'body' : sys.argv[3]} | |
| p.pushNotification(data) |