Skip to content

Instantly share code, notes, and snippets.

@carlcarl
Created July 22, 2013 18:07
Show Gist options
  • Select an option

  • Save carlcarl/6056107 to your computer and use it in GitHub Desktop.

Select an option

Save carlcarl/6056107 to your computer and use it in GitHub Desktop.
Plurk login
#!/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