Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib, urllib2, cookielib
- username = 'usr'
- password = 'psw'
- cj = cookielib.CookieJar()
- opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
- login_data = urllib.urlencode({'username' : username, 'password' : password})
- opener.open('https://www.deviantart.com/users/login', login_data)
- resp = opener.open('https://www.deviantart.com/settings/identity')
- print resp.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement