Well I am working on a multistage program... I am having trouble getting the first stage done.. What I want to do is log on to Twitter.com, and then read all the direct messages on the user's page.
Eventually I am going to be reading all the direct messages looking for certain thing, but that shouldn't be hard.
This is my code so far
import urllib
import urllib2
import httplib
import sys
userName = "notmyusername"
password = "notmypassword"
URL = "http://twitter.com/#inbox"
password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
password_mgr.add_password(None, "http://twitter.com/", userName, password)
handler = urllib2.HTTPBasicAuthHandler(password_mgr)
pageshit = urllib2.urlopen(URL, "80").readlines()
print pageshit
So a little insight and and help on what I am doing wrong would be quite helpful.