Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import plurkapi
- import random
- import sys
- import time
- #
- # Create an API object.
- # Pass in your own username and password to the "login" method.
- #
- username = 'littlebrain'
- password = '4ld1k3r3n'
- plurk_api = plurkapi.PlurkAPI()
- if plurk_api.login(username, password) == False:
- print "Login failed!"
- sys.exit(1)
- smileys = [':-))', ':-)', ':-D', '(LOL)', ':-P', '(woot)', ';-)', ':-o']
- randomindex = random.randint(0,len(smileys))
- randomtime = random.randint(0,600)
- #time.sleep(randomtime)
- #if randomindex == len(smileys):
- plurks = plurk_api.getUnreadPlurks()
- content = '(woot) %s unread responses! (woot)' % (len(plurks))
- #else:
- # content = smileys[randomindex]
- plurk_api.addPlurk(lang='in', qualifier='is', content=content)
- print content
Add Comment
Please, Sign In to add comment