Created
July 22, 2013 18:07
-
-
Save carlcarl/6056107 to your computer and use it in GitHub Desktop.
Plurk login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import requests | |
| nick_name = '' | |
| password = '' | |
| uid = 0 | |
| login_data = { | |
| 'nick_name': nick_name, | |
| 'password': password, | |
| 'logintoken': 1, | |
| } | |
| with requests.Session() as s: | |
| result = s.post('http://www.plurk.com/Users/login', data=login_data) | |
| post_data = { | |
| 'qualifier': 'says', | |
| 'content': 'msg', | |
| 'lang': 'tr_ch', | |
| 'no_comments': 0, | |
| 'uid': uid, | |
| } | |
| result = s.post('http://www.plurk.com/TimeLine/addPlurk', data=post_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment