Python SDK for Argo BBS
Pull request Compare This branch is 2 commits behind elaijuh:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CHANGELOG.md
LICENSE
README.md
argo.py
setup.py

README.md

ARGOPY

Introduction

This software is a Python interface to Argo BBS. It helps developers to access Argo BBS API via python. You may find argolab/jsbbs in github.

Install

You should have python 2.6+

python setup.py install

or just copy/paste argo.py to your working directory.

Usage

Demo code:

import argo

client = argo.APIClient(domain = 'argolab.org')

# get board name
o = client.get_ajax_board_alls()['data']  
for s in o:
    print s['secname'].encode('gbk')
    for b in s['boards']:
        print '    {} {}'.format(b['title'].encode('gbk'), b['boardname'])

# post login
client.post_ajax_login(userid = 'foo', passwd = 'bar')

Author

License


Copyright 2012 mopodo

Licensed under the MIT License