Posted By

felipec on 05/02/07


Tagged

web20 twitter


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Who likes this?

7 people have marked this snippet as a favorite

jarjar2k7
gedittest
fukami
lukaszkorecki
jasonseney
taboularasa
pipitu


Python Twitter


Published in: Python 






Expand | Embed | Plain Text
  1. import rest
  2.  
  3. class Connection:
  4. url = "https://twitter.com"
  5.  
  6. def __init__(self, username, password):
  7. self.conn = rest.Connection(self.url, username, password)
  8. self.status = Status(self.conn)
  9.  
  10. class Status:
  11. def __init__(self, conn):
  12. self.conn = conn
  13.  
  14. def update(self, message):
  15. res = self.conn.request_post("statuses/update.xml", {"status": message})

Report this snippet 

You need to login to post a comment.

Download royalty free graphics