|
Project Information
|
A way to update and poll services out on the web. And now an example ...
import sys
sys.path.append('/path/to/lensherr/')
from lensherr import *
USERNAME = "your_username_here"
PASSWORD = "your_password_here"
def main():
print "TinyUrl"
url = "http://a609.ac-images.myspacecdn.com/images01/82/l_9b4be91e86bf7fa9abda7f1b0b266cd8.jpg"
u = tinyurl(url)
tiny_url = u.create()
status = "Check this out %s" % (tiny_url)
print "Twitter"
t = twitter(USERNAME, PASSWORD)
response = t.update(status)
print "Facebook"
f = facebook(USERNAME, PASSWORD)
response = f.update(status)
print "MySpace"
m = myspace(USERNAME, PASSWORD)
response = m.update(status)
main()
|